This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
recipes
Philippe Lafoucrière edited this page Jul 4, 2014
·
7 revisions
You need to have installed Go from source before running goxc ...
go get github.com/laher/goxc
cd my-project
goxc
goxc xc
goxc -h
goxc -h tasks
goxc -h xc
goxc -bc="windows,386"
(the -bc syntax is based on Go 'Build Constraints')
goxc -bc="windows,386" -wc
goxc
goxc -wc
goxc bump
goxc bump
goxc bump -dot=1
This generates a bintray version (if necessary), uploads artifacts, and generates a 'downloads' page (default is a 'markdown' page).
- Create an account on bintray.com. Also create a repository and a package
- Edit your .goxc.json file:
{
...
"TaskSettings" : {
"bintray" : {
"package" : "my-package",
"subject": "my-username",
"repository": "my-repo",
"downloadspage": "bintray.md"
}
}
}
- Create a .goxc.local.json file containing your api key:
{
"ConfigVersion": "0.9",
"TaskSettings" : {
"bintray" : {
"apikey": "12d312314235afe56090932ea13234"
}
}
}
- Run the bintray task:
goxc bintray
-
Use a different version of go for this build:
goxc -goroot=/path/to/go/root xc
-
Use various
go build
args:goxc -build-gcflags="xxx" -build-processors=3 -build-ldflags='x=1' xc