mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Set bundlename for single targets
This commit is contained in:
parent
d7a8406640
commit
a3e5207039
1 changed files with 4 additions and 1 deletions
|
|
@ -181,7 +181,10 @@ func buildApplication(f *flags.Build) error {
|
|||
macTargets := targets.Filter(func(platform string) bool {
|
||||
return strings.HasPrefix(platform, "darwin")
|
||||
})
|
||||
if macTargets.Length() == 2 {
|
||||
switch macTargets.Length() {
|
||||
case 1:
|
||||
buildOptions.BundleName = fmt.Sprintf("%s.app", desiredFilename)
|
||||
case 2:
|
||||
buildOptions.BundleName = fmt.Sprintf("%s-%s.app", desiredFilename, buildOptions.Arch)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue