Skip to content

Commit d93e503

Browse files
committed
feat: add necessary modifications to the install scripts
1 parent 02bb631 commit d93e503

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

scripts/init.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
darwin: {
2222
x64: "x86_64-apple-darwin",
23+
arm64: "aarch64-apple-darwin",
2324
},
2425
win32: {
2526
x64: "x86_64-pc-windows-msvc.exe",

scripts/init.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
],
1313
'Darwin' => [
1414
'x86_64' => 'x86_64-apple-darwin',
15+
'arm64' => 'aarch64-apple-darwin',
1516
],
1617
'WindowsNT' => [
1718
'x86_64' => 'x86_64-pc-windows-msvc.exe',

scripts/init.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def get_target():
1616
},
1717
'Darwin': {
1818
'x86_64': 'x86_64-apple-darwin',
19+
'arm64': 'aarch64-apple-darwin',
1920
},
2021
'Windows': {
2122
'x86_64': 'x86_64-pc-windows-msvc',

scripts/init.sh

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ main() {
4141
Darwin:x86_64*)
4242
TARGET="x86_64-apple-darwin"
4343
;;
44+
Darwin:arm64*)
45+
TARGET="aarch64-apple-darwin"
46+
;;
4447
WindowsNT:x86_64*|MINGW64_NT*:x86_64*)
4548
TARGET="x86_64-pc-windows-msvc.exe"
4649
;;

scripts/java/init.java

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public int hashCode() {
104104
targets.put(new OsArch(Os.LINUX, Arch.ARM), "armv7-unknown-linux-musleabihf");
105105
targets.put(new OsArch(Os.LINUX, Arch.ARM64), "aarch64-unknown-linux-musl");
106106
targets.put(new OsArch(Os.OSX, Arch.X86_64), "x86_64-apple-darwin");
107+
targets.put(new OsArch(Os.OSX, Arch.ARM64), "aarch64-apple-darwin");
107108
targets.put(new OsArch(Os.WINDOWS, Arch.X86_64), "x86_64-pc-windows-msvc.exe");
108109
targets.put(new OsArch(Os.WINDOWS, Arch.I686), "i686-pc-windows-msvc.exe");
109110
SUPPORTED_TARGETS = Collections.unmodifiableMap(targets);

scripts/netcore/init.cs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static class Init
2424
OSPlatform.OSX,
2525
new Dictionary<Architecture, string>{
2626
{Architecture.X64, "x86_64-apple-darwin"},
27+
{Architecture.Arm64, "aarch64-apple-darwin"},
2728
}
2829
},
2930
{

0 commit comments

Comments
 (0)