Explorar o código

feat(macos): build script is detecting arch (#1085)

Baptiste Augrain %!s(int64=3) %!d(string=hai) anos
pai
achega
c3debb387d
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      build/build_macos.sh

+ 11 - 1
build/build_macos.sh

@@ -3,6 +3,16 @@
 rm -rf VSCode*
 rm -rf vscode
 
+UNAME_ARCH=$( uname -m )
+
+if [[ "${UNAME_ARCH}" == "arm64" ]]; then
+    export VSCODE_ARCH="arm64"
+else
+    export VSCODE_ARCH="x64"
+fi
+
+echo "-- VSCODE_ARCH: ${VSCODE_ARCH}"
+
 . get_repo.sh
 
-SHOULD_BUILD=yes CI_BUILD=no OS_NAME=osx VSCODE_ARCH=x64 . build.sh
+SHOULD_BUILD=yes CI_BUILD=no OS_NAME=osx . build.sh