feat: Add support for Windows ARM64 architecture in build workflows and scripts

This commit is contained in:
2026-03-22 22:46:27 +08:00
parent 0a932211f1
commit b161b7ac79
4 changed files with 14 additions and 1 deletions

View File

@@ -90,6 +90,9 @@ jobs:
- runner: windows-latest - runner: windows-latest
goos: windows goos: windows
goarch: amd64 goarch: amd64
- runner: windows-latest
goos: windows
goarch: arm64
- runner: macos-latest - runner: macos-latest
goos: darwin goos: darwin
goarch: amd64 goarch: amd64

View File

@@ -152,6 +152,14 @@ jobs:
goos: windows goos: windows
goarch: amd64 goarch: amd64
archive_ext: zip archive_ext: zip
- component: server
goos: windows
goarch: arm64
archive_ext: zip
- component: client
goos: windows
goarch: arm64
archive_ext: zip
steps: steps:
- name: Checkout code - name: Checkout code

View File

@@ -27,6 +27,7 @@ try {
$DesktopPlatforms = @( $DesktopPlatforms = @(
@{ OS = "windows"; Arch = "amd64" }, @{ OS = "windows"; Arch = "amd64" },
@{ OS = "windows"; Arch = "arm64" },
@{ OS = "linux"; Arch = "amd64" }, @{ OS = "linux"; Arch = "amd64" },
@{ OS = "linux"; Arch = "arm64" }, @{ OS = "linux"; Arch = "arm64" },
@{ OS = "darwin"; Arch = "amd64" }, @{ OS = "darwin"; Arch = "amd64" },
@@ -264,6 +265,7 @@ Options:
Target platforms: Target platforms:
- windows/amd64 - windows/amd64
- windows/arm64
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
- darwin/amd64 - darwin/amd64

View File

@@ -11,7 +11,7 @@ BUILD_TIME="$(date -u '+%Y-%m-%d %H:%M:%S')"
GIT_COMMIT="$(git -C "$ROOT_DIR" rev-parse --short HEAD 2>/dev/null || echo unknown)" GIT_COMMIT="$(git -C "$ROOT_DIR" rev-parse --short HEAD 2>/dev/null || echo unknown)"
USE_UPX="${USE_UPX:-true}" USE_UPX="${USE_UPX:-true}"
DESKTOP_PLATFORMS="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64" DESKTOP_PLATFORMS="linux/amd64 linux/arm64 windows/amd64 windows/arm64 darwin/amd64 darwin/arm64"
RED='\033[0;31m' RED='\033[0;31m'
GREEN='\033[0;32m' GREEN='\033[0;32m'