From aa0dd1a8e274018bc0195dd879b762a2e62a6f2e Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Tue, 29 Oct 2024 21:13:56 +0800 Subject: [PATCH] fix: build config --- script/build.config.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/script/build.config.sh b/script/build.config.sh index 3894c8f..aea6078 100644 --- a/script/build.config.sh +++ b/script/build.config.sh @@ -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() {