|
@@ -1,5 +1,4 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
-
|
|
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|
cp -rp src/* vscode/
|
|
cp -rp src/* vscode/
|
|
cd vscode
|
|
cd vscode
|
|
@@ -13,7 +12,6 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|
export npm_config_arch=arm64
|
|
export npm_config_arch=arm64
|
|
export npm_config_target_arch=arm64
|
|
export npm_config_target_arch=arm64
|
|
fi
|
|
fi
|
|
-
|
|
|
|
../update_settings.sh
|
|
../update_settings.sh
|
|
|
|
|
|
yarn
|
|
yarn
|
|
@@ -24,28 +22,37 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|
|
|
|
|
export NODE_ENV=production
|
|
export NODE_ENV=production
|
|
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
|
|
|
|
|
|
+ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
# microsoft adds their apt repo to sources
|
|
# microsoft adds their apt repo to sources
|
|
# unless the app name is code-oss
|
|
# unless the app name is code-oss
|
|
# as we are renaming the application to vscodium
|
|
# as we are renaming the application to vscodium
|
|
# we need to edit a line in the post install template
|
|
# we need to edit a line in the post install template
|
|
sed -i "s/code-oss/vscodium/" resources/linux/debian/postinst.template
|
|
sed -i "s/code-oss/vscodium/" resources/linux/debian/postinst.template
|
|
- fi
|
|
|
|
|
|
+ fi
|
|
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
npm run gulp vscode-darwin-min
|
|
npm run gulp vscode-darwin-min
|
|
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
|
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
|
- npm run gulp vscode-linux-ia32-min
|
|
|
|
- npm run gulp vscode-linux-ia32-build-deb
|
|
|
|
- npm run gulp vscode-linux-ia32-build-rpm
|
|
|
|
- unset npm_config_arch
|
|
|
|
|
|
+ npm run gulp vscode-linux-ia32-min
|
|
|
|
+ npm run gulp vscode-linux-ia32-build-deb
|
|
|
|
+ npm run gulp vscode-linux-ia32-build-rpm
|
|
|
|
+ unset npm_config_arch
|
|
elif [[ "$BUILDARCH" == "arm64" ]]; then
|
|
elif [[ "$BUILDARCH" == "arm64" ]]; then
|
|
npm run gulp vscode-linux-arm64-min
|
|
npm run gulp vscode-linux-arm64-min
|
|
npm run gulp vscode-linux-arm64-build-deb
|
|
npm run gulp vscode-linux-arm64-build-deb
|
|
# npm run gulp vscode-linux-arm64-build-rpm
|
|
# npm run gulp vscode-linux-arm64-build-rpm
|
|
|
|
+ elif [[ "$CI_WINDOWS" == "True" ]]; then
|
|
|
|
+ npx gulp vscode-win32-x64-min
|
|
|
|
+ npx gulp vscode-win32-x64-copy-inno-updater
|
|
|
|
+ npx gulp vscode-win32-x64-inno-updater
|
|
|
|
+ npx gulp vscode-win32-x64-system-setup
|
|
|
|
+ npx gulp vscode-win32-x64-user-setup
|
|
|
|
+ npx gulp vscode-win32-x64-archive
|
|
else
|
|
else
|
|
npm run gulp vscode-linux-x64-min
|
|
npm run gulp vscode-linux-x64-min
|
|
npm run gulp vscode-linux-x64-build-deb
|
|
npm run gulp vscode-linux-x64-build-deb
|
|
npm run gulp vscode-linux-x64-build-rpm
|
|
npm run gulp vscode-linux-x64-build-rpm
|
|
- fi
|
|
|
|
|
|
+ fi
|
|
|
|
+
|
|
|
|
+ cd ..
|
|
fi
|
|
fi
|