2021-03-10 10:04:07 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
rm -rf VSCode*
|
2022-08-16 10:11:08 -04:00
|
|
|
rm -rf vscode*
|
2021-03-10 10:04:07 -05:00
|
|
|
|
2022-05-15 19:35:17 -04:00
|
|
|
UNAME_ARCH=$( uname -m )
|
|
|
|
|
|
|
|
if [[ "${UNAME_ARCH}" == "arm64" ]]; then
|
2022-08-16 16:39:08 -04:00
|
|
|
export VSCODE_ARCH="arm64"
|
2022-05-15 19:35:17 -04:00
|
|
|
else
|
2022-08-16 16:39:08 -04:00
|
|
|
export VSCODE_ARCH="x64"
|
2022-05-15 19:35:17 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "-- VSCODE_ARCH: ${VSCODE_ARCH}"
|
|
|
|
|
2022-08-17 01:36:15 -04:00
|
|
|
if [[ "${1}" == "insider" ]]; then
|
|
|
|
export INSIDER="yes"
|
|
|
|
fi
|
|
|
|
|
2021-03-10 10:04:07 -05:00
|
|
|
. get_repo.sh
|
|
|
|
|
2022-05-15 19:35:17 -04:00
|
|
|
SHOULD_BUILD=yes CI_BUILD=no OS_NAME=osx . build.sh
|