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

This commit is contained in:
Baptiste Augrain 2022-05-16 01:35:17 +02:00 committed by GitHub
parent c53a88ee51
commit c3debb387d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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