gogio: [MacOS] add MacOS .app compilation

This patch is a initial implementation to make
`.app` file. It supports custom icons and sign.

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
This commit is contained in:
Inkeliz
2023-01-27 17:00:01 +00:00
committed by Elias Naur
parent 02068d6340
commit 5c14d1ba64
4 changed files with 226 additions and 3 deletions
+3 -1
View File
@@ -69,7 +69,7 @@ func flagValidate() error {
return errors.New("please specify -target")
}
switch *target {
case "ios", "tvos", "android", "js", "windows":
case "ios", "tvos", "android", "js", "windows", "macos":
default:
return fmt.Errorf("invalid -target %s", *target)
}
@@ -100,6 +100,8 @@ func build(bi *buildInfo) error {
return buildAndroid(tmpDir, bi)
case "windows":
return buildWindows(tmpDir, bi)
case "macos":
return buildMac(tmpDir, bi)
default:
panic("unreachable")
}