Bali is a golang cross compilation and cross platform build tools base Powershell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
example
modules
.gitignore
CMakeLists.txt
LICENSE
ReadMe.md
license.rtf

ReadMe.md

Bali

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

Goenv

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

Bali file

In project root, need bali.json, in source dir need balisrc.json.

Reliable Install

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

Example:

example/baligo

WORKING IN PROGRESS