英文:
Easily build a Mac OS X .app bundled with MacPorts
问题
有一个bash脚本可以从使用Go编写的应用程序中构建Mac OS X的.app包,它通过从Homebrew安装中提取必要的库、资源等,并调整库来实现。我很高兴添加MacPorts支持,但是...
难道没有更简单的方法吗,比如使用Xcode项目或其他方式?是否有类似于py2app的go工具?在.app包中使用外部库需要注意什么?
英文:
There is a bash script to build a Mac OS X .app bundle from an application written in Go that works by extracting the necessary libraries, resources, etc. from a Homebrew installation and tweaking the libraries. I'm happy adding MacPorts support, but..
Aren't there easier ways to do this, like using Xcode projects or whatever? Is there an analog of py2app for go? What should I know about using outside libraries in .app bundles?
答案1
得分: 1
如果我理解正确的话,你想将一个Go二进制文件打包成一个OS X的.app
文件。是的,你可以这样做。可以查看一下我cocoa-go项目的Makefile
。实际上,构建.app
文件相当容易。此外,我还可以推荐一篇关于bundle的开发者文库文章——Bundle Programming Guide。
英文:
If I understood you properly, you want to pack a Go binary as a OS X .app
file. Well, yes, you can do it. Take a look on Makefile
of my cocoa-go project. In fact, building .app
if fairly easy. Also, I can recommend a Developer Library article about bundles — Bundle Programming Guide.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论