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
+2
View File
@@ -73,6 +73,8 @@ func getArchs() []string {
goarch = runtime.GOARCH
}
return []string{goarch}
case "macos":
return []string{"arm64", "amd64"}
default:
// TODO: Add flag tests.
panic("The target value has already been validated, this will never execute.")