mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-23 08:52:43 +03:00
30 lines
519 B
Bash
30 lines
519 B
Bash
|
#!/usr/bin/env bash
|
||
|
# shellcheck disable=SC1091
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
if [[ "${CI_BUILD}" == "no" ]]; then
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
tar -xzf ./vscode.tar.gz
|
||
|
|
||
|
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
||
|
|
||
|
for i in {1..5}; do # try 5 times
|
||
|
npm ci && break
|
||
|
if [[ $i -eq 3 ]]; then
|
||
|
echo "Npm install failed too many times" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
echo "Npm install failed $i, trying again..."
|
||
|
done
|
||
|
|
||
|
node build/azure-pipelines/distro/mixin-npm
|
||
|
|
||
|
. ../build/windows/rtf/make.sh
|
||
|
|
||
|
yarn gulp "vscode-win32-${VSCODE_ARCH}-min-ci"
|
||
|
|
||
|
cd ..
|