fix: build config

pull/249/head
zijiren233 2 years ago
parent 250a8ec250
commit aa0dd1a8e2

@ -38,18 +38,18 @@ function printDepEnvHelp() {
echo -e " ${COLOR_LIGHT_GREEN}SKIP_INIT_WEB${COLOR_RESET} - Skip initializing the web dependency (set to any non-empty value to enable)"
}
function initDepPlatforms() {
clearAllowedPlatforms
function initDepTargets() {
clearAllowedTargets
addAllowedPlatforms "linux/386,linux/amd64,linux/arm,linux/arm64,linux/loong64,linux/mips,linux/mips64,linux/mips64le,linux/mipsle,linux/ppc64le,linux/riscv64,linux/s390x"
addAllowedPlatforms "darwin/amd64,darwin/arm64"
addAllowedPlatforms "windows/386,windows/amd64,windows/arm64"
addAllowedPlatforms "freebsd/386,freebsd/amd64,freebsd/arm,freebsd/arm64"
addAllowedPlatforms "netbsd/amd64"
addAllowedPlatforms "openbsd/amd64,openbsd/arm64"
addAllowedPlatforms "android/386,android/amd64,android/arm,android/arm64"
addAllowedTargets "linux/386,linux/amd64,linux/arm,linux/arm64,linux/loong64,linux/mips,linux/mips64,linux/mips64le,linux/mipsle,linux/ppc64le,linux/riscv64,linux/s390x"
addAllowedTargets "darwin/amd64,darwin/arm64"
addAllowedTargets "windows/386,windows/amd64,windows/arm64"
addAllowedTargets "freebsd/386,freebsd/amd64,freebsd/arm,freebsd/arm64"
addAllowedTargets "netbsd/amd64"
addAllowedTargets "openbsd/amd64,openbsd/arm64"
addAllowedTargets "android/386,android/amd64,android/arm,android/arm64"
addAllowedPlatforms "${GOHOSTOS}/${GOHOSTARCH}"
addAllowedTargets "${GOHOSTOS}/${GOHOSTARCH}"
}
function initDep() {

Loading…
Cancel
Save