轻松构建一个包含MacPorts的Mac OS X .app应用程序。

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

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.

huangapple
  • 本文由 发表于 2014年1月20日 09:23:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/21224875.html
匿名

发表评论

匿名网友

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

确定