mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
96ad9f83fc
2 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue