提交 e84569f5 编写于 作者: Z zhangli10

command-line: darwin package

上级 43ff43c6
......@@ -117,7 +117,7 @@ func generateICNS(proj *project.Project, appRoot string) error {
tmpWorkDir := filepath.Join(buildOutDir, "tmp")
os.Remove(tmpWorkDir)
if iconExt == ".png" {
term.Logger.Info("\tcreates icns")
term.Logger.Info("\tcreate icnns")
src, err := os.Open(proj.PList.Icon)
if err != nil {
return err
......@@ -162,7 +162,8 @@ func generateICNS(proj *project.Project, appRoot string) error {
}
proj.PList.Icon = filepath.Join(tmpWorkDir, name+".icns")
}
if iconExt == ".png" || iconExt == ".icns" {
iconExt = strings.ToLower(filepath.Ext(proj.PList.Icon))
if iconExt == ".icns" {
term.Logger.Info("\tcopy icns")
src, err := os.Open(proj.PList.Icon)
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册