mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 12:49:52 -06:00
@@ -135,6 +135,7 @@ func DisableFeature(feature *C.char) {
|
||||
func Unzip(zipFilePath, destination *C.char) {
|
||||
if err := gulu.Zip.Unzip(C.GoString(zipFilePath), C.GoString(destination)); nil != err {
|
||||
logging.LogErrorf("unzip [%s] failed: %s", zipFilePath, err)
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -293,6 +293,13 @@ func AssetName(name string) string {
|
||||
return util.AssetName(name, ast.NewNodeID())
|
||||
}
|
||||
|
||||
func Unzip(zipFilePath, destination string) {
|
||||
if err := gulu.Zip.Unzip(zipFilePath, destination); nil != err {
|
||||
logging.LogErrorf("unzip [%s] failed: %s", zipFilePath, err)
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func Exit() {
|
||||
os.Exit(logging.ExitCodeOk)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user