mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-18 05:34:41 +10:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9afbbd903b | ||
|
|
e21f491ecd | ||
|
|
5b1a4a1950 | ||
|
|
91f1d58dd7 | ||
|
|
d358627a19 |
47
build.sh
47
build.sh
@@ -1,4 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function keep_alive() {
|
||||||
|
while true; do
|
||||||
|
date
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
cp -rp src/* vscode/
|
cp -rp src/* vscode/
|
||||||
cd vscode
|
cd vscode
|
||||||
@@ -8,6 +16,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
../update_settings.sh
|
../update_settings.sh
|
||||||
|
|
||||||
yarn
|
yarn
|
||||||
|
yarn postinstall
|
||||||
mv product.json product.json.bak
|
mv product.json product.json.bak
|
||||||
|
|
||||||
# set fields in product.json
|
# set fields in product.json
|
||||||
@@ -53,20 +62,40 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
sed -i "s/code-oss/codium/" resources/linux/debian/postinst.template
|
sed -i "s/code-oss/codium/" resources/linux/debian/postinst.template
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
yarn gulp compile-build
|
||||||
|
yarn gulp compile-extensions-build
|
||||||
|
|
||||||
|
# this task is very slow on mac, so using a keep alive to keep travis alive
|
||||||
|
keep_alive &
|
||||||
|
KA_PID=$!
|
||||||
|
yarn gulp minify-vscode
|
||||||
|
kill $KA_PID
|
||||||
|
|
||||||
|
yarn gulp minify-vscode-reh
|
||||||
|
yarn gulp minify-vscode-reh-web
|
||||||
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
npm install --global create-dmg
|
npm install --global create-dmg
|
||||||
npm run gulp -- "vscode-darwin-min"
|
yarn gulp vscode-darwin-min-ci
|
||||||
|
yarn gulp vscode-reh-darwin-min-ci
|
||||||
|
yarn gulp vscode-reh-web-darwin-min-ci
|
||||||
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
||||||
cp LICENSE.txt LICENSE.rtf # windows build expects rtf license
|
cp LICENSE.txt LICENSE.rtf # windows build expects rtf license
|
||||||
npm run gulp -- "vscode-win32-${BUILDARCH}-min"
|
yarn gulp "vscode-win32-${BUILDARCH}-min-ci"
|
||||||
npm run gulp -- "vscode-win32-${BUILDARCH}-inno-updater"
|
yarn gulp "vscode-reh-win32-${BUILDARCH}-min-ci"
|
||||||
npm run gulp -- "vscode-win32-${BUILDARCH}-system-setup"
|
yarn gulp "vscode-reh-web-win32-${BUILDARCH}-min-ci"
|
||||||
npm run gulp -- "vscode-win32-${BUILDARCH}-user-setup"
|
yarn gulp "vscode-win32-${BUILDARCH}-code-helper"
|
||||||
npm run gulp -- "vscode-win32-${BUILDARCH}-archive"
|
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
|
else # linux
|
||||||
npm run gulp -- "vscode-linux-${BUILDARCH}-min"
|
yarn gulp vscode-linux-x64-min-ci
|
||||||
npm run gulp -- "vscode-linux-${BUILDARCH}-build-deb"
|
yarn gulp vscode-reh-linux-x64-min-ci
|
||||||
npm run gulp -- "vscode-linux-${BUILDARCH}-build-rpm"
|
yarn gulp vscode-reh-web-linux-x64-min-ci
|
||||||
|
|
||||||
|
yarn gulp "vscode-linux-${BUILDARCH}-build-deb"
|
||||||
|
yarn gulp "vscode-linux-${BUILDARCH}-build-rpm"
|
||||||
. ../create_appimage.sh
|
. ../create_appimage.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user