go-astilectron-bundler
go-astilectron-bundler copied to clipboard
Using xgo for cross compiling
Now there is a problem to build applications which use CGO. So I have an idea to add ability to build applications with this tool https://github.com/karalabe/xgo.
So the idea is add configuration in bundle.json and allow user to configure the way to bundle application choosing between go build
and xgo
.
I am ready to create PR. What do you think about this?
@vidmed it sounds like a great idea even though I've never used xgo
myself.
I'd happy to review your PR.
Hi! Any chances to accept this PR?
@an2deg unfortunately there are still some changes to be made in this PR but my guess is that @vidmed won't have time to work on it.
You're welcome to pick it up if this is something you need. Just check out the conversation to see what needs to be done.
@asticode There is another way that gets around using xgo. Instead use vagrant and run a full desktop, so you can build on the real OS.
its here and it works well: github.com/mcandre/tonixxx
It can run Macos inside VirtBix from a windows or linux host btw. everything is automated. Its fast too. Its nice because you can also just open the Virtual Box image and test the app too to know its really working. But it does take up about 40 GB to hold Windows, Mac and ubuntu images.
It should be reasonably easy to adapt the Bundler you have to work with tonixx too. I would make it an option. Sort of future proofing.
But i can perfectly understand if you dont want to go down this path. But i have to say it is the only one that works no matter what CGO or other OS build dependencies you hit now and into the future. The golang team build this way and test this way for desktops too.
@gedw99 that's a good suggestion however I'm not familiar with the modifications that would be required in the bundler.
Would you be up for a PR or describing with more details what is needed?