cmd/gio: use package name for iOS binaries

To make it easier to locate the app in the Console app.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-20 11:10:59 +02:00
parent 4b3b8fa413
commit 1f918c751e
+4 -3
View File
@@ -171,7 +171,8 @@ int main(int argc, char * argv[]) {
if err := ioutil.WriteFile(mainm, []byte(mainmSrc), 0660); err != nil { if err := ioutil.WriteFile(mainm, []byte(mainmSrc), 0660); err != nil {
return err return err
} }
exe := filepath.Join(app, "app") appName := strings.Title(bi.name)
exe := filepath.Join(app, appName)
lipo := exec.Command("xcrun", "lipo", "-o", exe, "-create") lipo := exec.Command("xcrun", "lipo", "-o", exe, "-create")
var builds errgroup.Group var builds errgroup.Group
for _, a := range bi.archs { for _, a := range bi.archs {
@@ -299,7 +300,7 @@ func buildInfoPlist(bi *buildInfo) string {
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>app</string> <string>%s</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>%s</string> <string>%s</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
@@ -349,7 +350,7 @@ func buildInfoPlist(bi *buildInfo) string {
<key>DTXcodeBuild</key> <key>DTXcodeBuild</key>
<string>10G8</string> <string>10G8</string>
</dict> </dict>
</plist>`, bi.appID, appName, bi.version, bi.version, platform, minIOSVersion, supportPlatform, platform) </plist>`, appName, bi.appID, appName, bi.version, bi.version, platform, minIOSVersion, supportPlatform, platform)
} }
func iosPlatformFor(target string) string { func iosPlatformFor(target string) string {