Skip to content

Mage based building & ci #9

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

Closed
ghost opened this issue Sep 13, 2018 · 7 comments
Closed

Mage based building & ci #9

ghost opened this issue Sep 13, 2018 · 7 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Sep 13, 2018

Hopefully anyone reading this knows what golang mage is and the problems it solves for cross platform building - especially on desktops.

I think a mage script will really help the pace and regressions.

A great example of using it is elastic beats repo.

https://github.com/elastic/beats

For with does,Mac and Linux there is a make file that checks mage is installed and them mage all the way from there.
You can do exactly the same in CI on Travis, appveyor, etc etc.

I would start with the basics like beats does and then extend from there.

They also can build and sign golang apps for desktop and build installers for both platforms ! All from golang.

Give it a look ...

@pchampio pchampio added the enhancement New feature or request label Sep 13, 2018
@pchampio
Copy link
Member

pchampio commented Sep 13, 2018

Thanks for your suggestion,
I didn't know Golang mage, and I like the fact that everything stays in Go.
Binaries building using Appveyor could be ✨. Doing it using Vagrant could also work.

@ghost
Copy link
Author

ghost commented Oct 29, 2018

I got a prototype working.
It inspects the current flutter installed and then pulls the correct flutter embedded binary based on the sha.

But for some reason I can't get the final cgo binding to work on my Mac when I follow the Mac sh script.

Maybe I should upload it to the fork and you can have a look to see what I am doing wrong.

I also want to add packaging and signing for Mac and Windows but first need help with cgo.

@pchampio
Copy link
Member

Feel free to create a new Issue with the related CGO errors logs.

@zephylac
Copy link
Collaborator

Maybe this issue is linked to #31 and #29. It is not mage file but it should work.

@ghost
Copy link
Author

ghost commented Mar 20, 2019

@GeertJohan Sorry i have not had time to implement this. It is on my todo list still !!

@GeertJohan
Copy link
Member

Cool. I'm also working on a tool; glutter, which uses go, flutter, maybe xgo to initialize and build a flutter application for desktop. But it's always good to have multiple ways to do it.

@pchampio
Copy link
Member

pchampio commented Jul 23, 2019

The tool hover exist, Mage build is irrelevant.
CI can be good, it could enable us to have pre-build version of go-flutter. But CI is irrelevant in the same way flutter dosn't provide pre-build version of android flutter, users will add plugins wtich needs building, or needs static linking.., better build from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants