Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request - bundle as a .pkg #39

Open
joeblew99 opened this issue Nov 17, 2016 · 2 comments
Open

feature request - bundle as a .pkg #39

joeblew99 opened this issue Nov 17, 2016 · 2 comments

Comments

@joeblew99
Copy link

i noticed the recent work on the bundling at https://github.com/alexflint/gallium/blob/master/cmd/gallium-bundle/bundle.go

looking awesome !

At the moment the bundling produces a ".app", however its possible with golang to produce a ".pkg" so that the end user gets a decent install experience, and we are developers get control about where things are places and file ACLS assigned etc.
It will also help with getting projects into a CI and CB pipeline, and prepare for continuous updates if we want to integrate that later.

This is the way the golang team does it and its quite simple.
https://github.com/golang/build/blob/master/cmd/release/releaselet.go#L149

It will only build on OSX.
it calls out to pkgbuild & then productbuild for final signing for users.
Its described well here:
http://thegreyblog.blogspot.de/2014/06/os-x-creating-packages-from-command_2.html
I think its very complete.

Please let me know what you think....

@alexflint
Copy link
Owner

Great resources, thanks @joeblew99. We should definitely provide a good bundling option. It seems like there are three possible build artifacts that we might want to output: .app, .pkg, and .dmg. For UI applications that ultimately end up in /Applications, it seems like it's standard to have a .dmg containing a .app. Given that, do you think we also need a .pkg option?

@alexflint
Copy link
Owner

Also, pkgbuild will build a .pkg, but do you know whether that pkg will eventually install the executable go binary directly on the user's computer, or will it ultimately install a .app containing the go binary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants