mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 04:28:07 +01:00
🎨 Improve mobile unzip
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
061d8f7650
commit
462e992206
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