代码拉取完成,页面将自动刷新
Golang Cross Compilation
& Cross Platform
build tools base PowerShell
Initialize Go Environment form goenv.json
usage: bali options
-dir build dir (position 0)
-target build target: windows linux darwin .... (position 1)
-arch build arch: amd64 386 arm arm64... (position 2)
-out out dir,if not set, $projectdir/build
-prefix install prefix, when exists, we will install it.
-zip package build output with zip, -prefix not set
-help,-h print help info and exit.
example:
bali -dir /path/to/project -target windows -arch amd64 ...
bali . windows amd64 -prefix /path/to/install
bali -arch amd64 -out out
bali -arch amd64 -zip
bali -z ;#build current OS arch and create zip
bali -prefix /path/to/install ;#build current OS arch and install
You can only set goenv.json without modify the system environment variables
config/goenv.json
{
"PATH": [
"D:\\Go\\bin"
],
"GOPATH": "D:\\Home",
"GOROOT": "D:\\Go"
}
You can click balienv.bat
to start Goenv Console Prompt
, run go get or git. alias, in this console
bmk
like bali
In project root, need bali.json
, in source dir need balisrc.json
.
Install config file, we support if file is exists, don't copy it. unless force=true
{
"path": "config/bgw.json",
"destination": "config",
"force": true
}
Install target file when if set balisrc.json reliable=true
, when install will rename exists old target to target.old
.
"reliable": true
WORKING IN PROGRESS
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。