From 1f918c751e9f376ed39973f95924b8b6328a4189 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 20 Aug 2019 11:10:59 +0200 Subject: [PATCH] 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 --- cmd/gio/iosbuild.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/gio/iosbuild.go b/cmd/gio/iosbuild.go index 96bbcf43..2e37557d 100644 --- a/cmd/gio/iosbuild.go +++ b/cmd/gio/iosbuild.go @@ -171,7 +171,8 @@ int main(int argc, char * argv[]) { if err := ioutil.WriteFile(mainm, []byte(mainmSrc), 0660); err != nil { 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") var builds errgroup.Group for _, a := range bi.archs { @@ -299,7 +300,7 @@ func buildInfoPlist(bi *buildInfo) string { CFBundleDevelopmentRegion en CFBundleExecutable - app + %s CFBundleIdentifier %s CFBundleInfoDictionaryVersion @@ -349,7 +350,7 @@ func buildInfoPlist(bi *buildInfo) string { DTXcodeBuild 10G8 -`, bi.appID, appName, bi.version, bi.version, platform, minIOSVersion, supportPlatform, platform) +`, appName, bi.appID, appName, bi.version, bi.version, platform, minIOSVersion, supportPlatform, platform) } func iosPlatformFor(target string) string {