baligo极简 Golang 构建打包工具
Baligo - 使用 Golang 重新实现的 Bali。极简 Golang 构建打包工具 ,Gitee 官方使用。
特性:
- 创建压缩包
- 创建 POSIX STGZ 安装包,安装包支持二进制回归,安装过程中不会覆盖配置文件。
- 环境变量传递
- 支持交叉编译
- Windows 平台支持嵌入版本信息,图标以及应用程序清单
bali 的命令行帮助信息如下:
Bali - Minimalist Golang build and packaging tool
usage: ./build/bin/bali <option> args ...
-h|--help Show usage text and quit
-v|--version Show version number and quit
-V|--verbose Make the operation more talkative
-F|--force Turn on force mode. eg: Overwrite configuration file
-w|--workdir Specify bali running directory. (Position 0, default $PWD)
-a|--arch Build arch: amd64 386 arm arm64
-t|--target Build target: windows linux darwin ...
-o|--out Specify build output directory. default '$PWD/build'
-d|--dest Specify the path to save the package
-z|--zip Create archive file (UNIX: .tar.gz, Windows: .zip)
-p|--pack Create installation package (UNIX: STGZ, Windows: none)
--cleanup Cleanup build directory
--no-rename Disable file renaming (STGZ installation package, default: OFF)
评论
