英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论