Skip to content

Commit 1847b25

Browse files
buchwasabuchwasa
authored andcommitted
Build arm64 or x64 based on arch
1 parent 9d5f189 commit 1847b25

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/osx/Installer.Mac/layout.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,21 @@ GITLAB_UI_SRC="$SRC/shared/GitLab.UI.Avalonia"
2727

2828
# Build parameters
2929
FRAMEWORK=net6.0
30-
RUNTIME=osx-arm64
30+
31+
TEST_ARCH=`uname -m`
32+
case $TEST_ARCH in
33+
"x86_64")
34+
RUNTIME="osx-x64"
35+
;;
36+
"arm64")
37+
RUNTIME="osx-arm64"
38+
;;
39+
*)
40+
die "Unknown architecture '$TEST_ARCH'"
41+
;;
42+
esac
43+
44+
echo "Building for architecture '$RUNTIME'"
3145

3246
# Parse script arguments
3347
for i in "$@"

0 commit comments

Comments
 (0)