在OSX上创建一个不打开终端窗口的Golang可执行文件?

huangapple go评论78阅读模式
英文:

Create Golang executable that doesn't open a terminal window on OSX?

问题

如何在OSX上创建一个不打开终端窗口的Golang可执行文件?

这里有一个类似的问题,针对Windows平台。
https://stackoverflow.com/q/23250505/395461

英文:

How do you create a Golang executable that doesn't open a terminal window on OSX?

There's a similar question here for Windows.
https://stackoverflow.com/q/23250505/395461

答案1

得分: 3

可能,你只需要将可执行文件打包到应用程序包中。它只是一个带有.app扩展名的目录,其中包含可执行文件、资源和配置文件(plist文件)。

你可以在developer.apple.com上阅读所有规范。此外,你可以打开现有应用程序的包,查看里面有什么。

英文:

Probably, you just need to pack your executable in application bundle. It's just a directory with .app extension where executable, resources and configs (plist-files) are stored.

You can read all specs at developer.apple.com. Also you can open bundles with your existing apps and look what's inside.

huangapple
  • 本文由 发表于 2015年8月20日 13:39:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/32110324.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定