yao/share/const.go
Max 6e97de948b Enhance build process and options management
- Update Makefile to include new production and UPX build targets for optimized binaries.
- Add BUILDOPTIONS constant to share/const.go for tracking build configurations.
- Modify version command to display build options.
- Update Dockerfile to install UPX for compression during builds.
- Add release and prod targets to streamline artifact creation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 10:22:55 +08:00

37 lines
808 B
Go

package share
// VERSION Yao App Engine Version
const VERSION = "1.0.0"
// PRVERSION Yao App Engine PR Commit
const PRVERSION = "DEV"
// CUI Version
const CUI = "1.0.0"
// PRCUI CUI PR Commit
const PRCUI = "DEV"
// BUILDOPTIONS Build options (e.g., "-s -w", "-s -w +upx")
const BUILDOPTIONS = ""
// BUILDIN If true, the application will be built into a single artifact
const BUILDIN = false
// BUILDNAME The name of the artifact
const BUILDNAME = "yao"
// MoapiHosts the master mirror
var MoapiHosts = []string{
"master.moapi.ai",
"master-moon.moapi.ai",
"master-earth.moapi.ai",
"master-mars.moapi.ai",
"master-venus.moapi.ai",
"master-mercury.moapi.ai",
"master-jupiter.moapi.ai",
"master-saturn.moapi.ai",
"master-uranus.moapi.ai",
"master-neptune.moapi.ai",
"master-pluto.moapi.ai",
}