mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-15 11:34:15 +03:00
51 lines
1.3 KiB
Bash
Executable File
51 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|
npm config set scripts-prepend-node-path true
|
|
|
|
export BUILD_SOURCEVERSION=$LATEST_MS_COMMIT
|
|
echo "LATEST_MS_COMMIT: ${LATEST_MS_COMMIT}"
|
|
echo "BUILD_SOURCEVERSION: ${BUILD_SOURCEVERSION}"
|
|
|
|
if [[ "$CI_WINDOWS" == "True" ]]; then
|
|
export npm_config_arch="$BUILDARCH"
|
|
export npm_config_target_arch="$BUILDARCH"
|
|
fi
|
|
|
|
. prepare_vscode.sh
|
|
|
|
cd vscode || exit
|
|
|
|
yarn monaco-compile-check
|
|
yarn valid-layers-check
|
|
|
|
yarn gulp compile-build
|
|
yarn gulp compile-extensions-build
|
|
yarn gulp minify-vscode
|
|
|
|
if [[ "$OS_NAME" == "osx" ]]; then
|
|
yarn gulp vscode-darwin-min-ci
|
|
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
|
cp LICENSE.txt LICENSE.rtf # windows build expects rtf license
|
|
yarn gulp "vscode-win32-${BUILDARCH}-min-ci"
|
|
yarn gulp "vscode-win32-${BUILDARCH}-code-helper"
|
|
yarn gulp "vscode-win32-${BUILDARCH}-inno-updater"
|
|
yarn gulp "vscode-win32-${BUILDARCH}-archive"
|
|
yarn gulp "vscode-win32-${BUILDARCH}-system-setup"
|
|
yarn gulp "vscode-win32-${BUILDARCH}-user-setup"
|
|
else # linux
|
|
yarn gulp vscode-linux-${VSCODE_ARCH}-min-ci
|
|
|
|
yarn gulp "vscode-linux-${VSCODE_ARCH}-build-deb"
|
|
|
|
if [[ "$VSCODE_ARCH" == "x64" ]]; then
|
|
yarn gulp "vscode-linux-${VSCODE_ARCH}-build-rpm"
|
|
fi
|
|
. ../create_appimage.sh
|
|
fi
|
|
|
|
cd ..
|
|
fi
|