Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2026-02-15 17:37:25 +08:00
commit 96ad9f83fc
2 changed files with 8 additions and 0 deletions

View file

@ -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)
}
}

View file

@ -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)
}