Skip to content

Commit

Permalink
U: energy cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Dec 19, 2024
1 parent d1bd2a0 commit 82b3c43
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/internal/packager/pkg_app_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,16 @@ func pkgbuild(c *command.Config, proj *project.Project, appRoot string) error {
println(msg)
}
}
var args = []string{"--root", fmt.Sprintf("%s.app", getAppName(c, proj)),
app := fmt.Sprintf("%s.app", getAppName(c, proj))
pkg := fmt.Sprintf("%s.pkg", getAppName(c, proj))
var args = []string{"--root", app,
"--identifier", fmt.Sprintf("com.%s.%s", proj.PList.CompanyName, proj.PList.ProductName),
"--version", proj.PList.CFBundleVersion,
"--install-location", fmt.Sprintf("/Applications/%s.app", getAppName(c, proj)),
fmt.Sprintf("%s.pkg", getAppName(c, proj))}
"--install-location", fmt.Sprintf("/Applications/%s", app), pkg}
cmd.Command("pkgbuild", args...)
cmd.Close()
// remove xxx.app
os.Remove(filepath.Join(buildOutDir, appRoot))
os.RemoveAll(filepath.Join(cmdWorkDir, app))
return nil
}

Expand Down

0 comments on commit 82b3c43

Please sign in to comment.