custombuild

command
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

custombuild 按仓库根目录的 modules.json 做定制构建:校验模块、语言档位与构建目标,补齐依赖的模块, 计算 go build 的 build tags、前端构建的 GATELY_LOCALES 与组合键(profile),并可直接构建安装包。 本地定制构建与 build.gately.cn 的构建工作流共用它,保证两边结果一致。

用法(在仓库根目录执行):

go run ./tools/custombuild resolve -modules ddns,frp,guard -lang cjk-en -targets linux-arm64
go run ./tools/custombuild build -version v0.6.4 -modules ddns,frp -lang zh -targets linux-arm64,fnos-arm -out dist

-modules 为要包含的可选模块(逗号分隔,all 表示全部,留空表示只有核心模块),核心模块总是包含。 resolve 输出一行 JSON,字段见 resolved;build 的产物见 build.go。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL