提交 4946ff64 编写于 作者: yanghye's avatar yanghye

命令行工具更新 MacOSX

上级 a76fbada
......@@ -63,6 +63,7 @@ func runInstall(c *CommandConfig) error {
c.Install.Version = "latest"
}
os.MkdirAll(c.Install.Path, fs.ModePerm)
os.MkdirAll(installPathName, fs.ModePerm)
os.MkdirAll(filepath.Join(c.Install.Path, frameworkCache), fs.ModePerm)
println("Start downloading CEF and Energy dependency")
downloadJSON, err := downloadConfig(download_version_config_url)
......@@ -152,7 +153,7 @@ func runInstall(c *CommandConfig) error {
if di.success {
if key == cefKey {
bar := progressbar.NewBar(0)
bar.SetNotice("Unpack file " + di.fileName + ": ")
bar.SetNotice("Unpack file " + key + ": ")
tarName := UnBz2ToTar(di.downloadPath, func(totalLength, processLength int64) {
bar.PrintSizeBar(processLength)
})
......@@ -162,7 +163,7 @@ func runInstall(c *CommandConfig) error {
} else if key == energyKey {
ExtractFiles(key, di.downloadPath, di, extractOSConfig)
}
println("Unpack file", di.fileName, "success")
println("Unpack file", key, "success\n")
}
}
for _, rmFile := range removeFileList {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册