feat(macos): build script is detecting arch (#1085)
This commit is contained in:
parent
c53a88ee51
commit
c3debb387d
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue