From 3af47ba9dba880bb2b9e1f52d1c3b1fd07f5db4d Mon Sep 17 00:00:00 2001 From: 1c3z Date: Thu, 16 Nov 2023 13:40:47 +0800 Subject: [PATCH 1/2] add copy_macos_arm64 --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.sh b/build.sh index 2a25e32..ea24b53 100755 --- a/build.sh +++ b/build.sh @@ -36,6 +36,10 @@ copy_macos() { copy "server-darwin-amd64.dylib" "darwin-x86-64" "lib" } +copy_macos_arm64() { + copy "server-darwin-arm64.dylib" "darwin-aarch64" "lib" +} + copy_linux_386() { copy "server-linux-386.so" "linux-x86" } @@ -57,6 +61,10 @@ cleanup copy_macos buildJar "macos-amd64" +cleanup +copy_macos_arm64 +buildJar "macos-arm64" + cleanup copy_linux_386 buildJar "linux-i386" @@ -76,6 +84,7 @@ buildJar "windows-i386" # build single cross-platform fat jar cleanup copy_macos +copy_macos_arm64 copy_linux_386 copy_linux_amd64 copy_windows_amd64 From 4b67f10c5b3bc8993c7ab33aa888516899917456 Mon Sep 17 00:00:00 2001 From: 1c3z Date: Thu, 16 Nov 2023 13:41:58 +0800 Subject: [PATCH 2/2] add build darwin/arm64 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1017d8a..fe16c75 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,7 +21,7 @@ jobs: dest: build pkg: cmd prefix: server - targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64 + targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64,darwin/arm64 # Prints the build commands as compilation progresses (default false) x: true ldflags: -w