mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-18 05:34:41 +10:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfc5bbd51e | ||
|
|
d3a7edee21 | ||
|
|
6bf38fa316 | ||
|
|
d203723bd5 | ||
|
|
880f505515 | ||
|
|
8b57482521 | ||
|
|
6d1b1c06bc | ||
|
|
112b141bf2 | ||
|
|
53b56dbebb | ||
|
|
cd6e1485b5 | ||
|
|
f787c21b3c | ||
|
|
74e4592337 | ||
|
|
9afbbd903b | ||
|
|
e21f491ecd | ||
|
|
5b1a4a1950 | ||
|
|
91f1d58dd7 | ||
|
|
d358627a19 | ||
|
|
06cc20f63b | ||
|
|
88503d7855 | ||
|
|
b44a4f56c4 | ||
|
|
72781d2f52 | ||
|
|
492c8c658e | ||
|
|
59ef86968e |
18
.travis.yml
18
.travis.yml
@@ -3,13 +3,7 @@ matrix:
|
|||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
env: BUILDARCH=x64
|
env: BUILDARCH=x64
|
||||||
- os: linux
|
dist: trusty
|
||||||
sudo: required
|
|
||||||
env: BUILDARCH=ia32
|
|
||||||
# arm64 builds don't work yet
|
|
||||||
# - os: linux
|
|
||||||
# sudo: required
|
|
||||||
# env: BUILDARCH=arm64
|
|
||||||
- os: osx
|
- os: osx
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
@@ -24,7 +18,6 @@ before_install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
- ./trigger-azure.sh
|
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- ./sign_mac_app.sh
|
- ./sign_mac_app.sh
|
||||||
@@ -44,12 +37,9 @@ deploy:
|
|||||||
- ./*.zip
|
- ./*.zip
|
||||||
- ./*.tar.gz
|
- ./*.tar.gz
|
||||||
- ./*.dmg
|
- ./*.dmg
|
||||||
- vscode/.build/linux/deb/i386/deb/*.deb
|
- ./*.deb
|
||||||
- vscode/.build/linux/rpm/i386/*.rpm
|
- ./*.rpm
|
||||||
- vscode/.build/linux/deb/amd64/deb/*.deb
|
- ./*.AppImage
|
||||||
- vscode/.build/linux/rpm/x86_64/*.rpm
|
|
||||||
- vscode/.build/linux/deb/arm64/deb/*.deb
|
|
||||||
- vscode/out/*.AppImage
|
|
||||||
on:
|
on:
|
||||||
all_branches: true
|
all_branches: true
|
||||||
condition: $SHOULD_BUILD = yes
|
condition: $SHOULD_BUILD = yes
|
||||||
|
|||||||
53
build.sh
53
build.sh
@@ -1,5 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function keep_alive() {
|
||||||
|
while true; do
|
||||||
|
date
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
|
export BUILD_SOURCEVERSION=$LATEST_MS_COMMIT
|
||||||
|
echo "LATEST_MS_COMMIT: ${LATEST_MS_COMMIT}"
|
||||||
|
echo "BUILD_SOURCEVERSION: ${BUILD_SOURCEVERSION}"
|
||||||
|
|
||||||
cp -rp src/* vscode/
|
cp -rp src/* vscode/
|
||||||
cd vscode
|
cd vscode
|
||||||
|
|
||||||
@@ -8,6 +20,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
|
||||||
@@ -33,7 +46,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
win32NameVersion='setpath(["win32NameVersion"]; "VSCodium")'
|
win32NameVersion='setpath(["win32NameVersion"]; "VSCodium")'
|
||||||
win32RegValueName='setpath(["win32RegValueName"]; "VSCodium")'
|
win32RegValueName='setpath(["win32RegValueName"]; "VSCodium")'
|
||||||
win32AppUserModelId='setpath(["win32AppUserModelId"]; "Microsoft.VSCodium")'
|
win32AppUserModelId='setpath(["win32AppUserModelId"]; "Microsoft.VSCodium")'
|
||||||
win32ShellNameShort='setpath(["win32ShellNameShort"]; "V&SCodium")'
|
win32ShellNameShort='setpath(["win32ShellNameShort"]; "VSCodium")'
|
||||||
win32x64UserAppId='setpath (["win32x64UserAppId"]; "{{2E1F05D1-C245-4562-81EE-28188DB6FD17}")'
|
win32x64UserAppId='setpath (["win32x64UserAppId"]; "{{2E1F05D1-C245-4562-81EE-28188DB6FD17}")'
|
||||||
urlProtocol='setpath(["urlProtocol"]; "vscodium")'
|
urlProtocol='setpath(["urlProtocol"]; "vscodium")'
|
||||||
extensionAllowedProposedApi='setpath(["extensionAllowedProposedApi"]; getpath(["extensionAllowedProposedApi"]) + ["ms-vsliveshare.vsliveshare"])'
|
extensionAllowedProposedApi='setpath(["extensionAllowedProposedApi"]; getpath(["extensionAllowedProposedApi"]) + ["ms-vsliveshare.vsliveshare"])'
|
||||||
@@ -53,20 +66,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
|
||||||
|
|
||||||
|
|||||||
@@ -15,25 +15,6 @@ if [ "$GITHUB_TOKEN" != "" ]; then
|
|||||||
echo "Building on Mac because we have no ZIP"
|
echo "Building on Mac because we have no ZIP"
|
||||||
export SHOULD_BUILD="yes"
|
export SHOULD_BUILD="yes"
|
||||||
fi
|
fi
|
||||||
elif [[ $BUILDARCH == "ia32" ]]; then
|
|
||||||
HAVE_IA32_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["i386.rpm"])')
|
|
||||||
HAVE_IA32_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["i386.deb"])')
|
|
||||||
HAVE_IA32_TAR=$(echo $VSCODIUM_ASSETS | jq --arg suffix "ia32-$LATEST_MS_TAG.tar.gz" 'map(.name) | contains([$suffix])')
|
|
||||||
if [[ "$HAVE_IA32_RPM" != "true" ]]; then
|
|
||||||
echo "Building on Linux ia32 because we have no RPM"
|
|
||||||
export SHOULD_BUILD="yes"
|
|
||||||
fi
|
|
||||||
if [[ "$HAVE_IA32_DEB" != "true" ]]; then
|
|
||||||
echo "Building on Linux ia32 because we have no DEB"
|
|
||||||
export SHOULD_BUILD="yes"
|
|
||||||
fi
|
|
||||||
if [[ "$HAVE_IA32_TAR" != "true" ]]; then
|
|
||||||
echo "Building on Linux ia32 because we have no TAR"
|
|
||||||
export SHOULD_BUILD="yes"
|
|
||||||
fi
|
|
||||||
if [[ "$SHOULD_BUILD" != "yes" ]]; then
|
|
||||||
echo "Already have all the Linux ia32 builds"
|
|
||||||
fi
|
|
||||||
elif [[ $BUILDARCH == "arm64" ]]; then
|
elif [[ $BUILDARCH == "arm64" ]]; then
|
||||||
# HAVE_ARM64_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["arm64.rpm"])')
|
# HAVE_ARM64_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["arm64.rpm"])')
|
||||||
HAVE_ARM64_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["arm64.deb"])')
|
HAVE_ARM64_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["arm64.deb"])')
|
||||||
|
|||||||
@@ -4,9 +4,6 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
cd VSCode-darwin
|
cd VSCode-darwin
|
||||||
zip -r -X -y ../VSCodium-darwin-${LATEST_MS_TAG}.zip ./*.app
|
zip -r -X -y ../VSCodium-darwin-${LATEST_MS_TAG}.zip ./*.app
|
||||||
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
|
||||||
cd VSCode-linux-ia32
|
|
||||||
tar czf ../VSCodium-linux-ia32-${LATEST_MS_TAG}.tar.gz .
|
|
||||||
elif [[ "$BUILDARCH" == "arm64" ]]; then
|
elif [[ "$BUILDARCH" == "arm64" ]]; then
|
||||||
cd VSCode-linux-arm64
|
cd VSCode-linux-arm64
|
||||||
tar czf ../VSCodium-linux-arm64-${LATEST_MS_TAG}.tar.gz .
|
tar czf ../VSCodium-linux-arm64-${LATEST_MS_TAG}.tar.gz .
|
||||||
|
|||||||
@@ -6,22 +6,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|||||||
else
|
else
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y fakeroot rpm jq
|
sudo apt-get install -y fakeroot rpm jq
|
||||||
if [[ "$BUILDARCH" == "ia32" ]]; then
|
if [[ $BUILDARCH == "arm64" ]]; then
|
||||||
sudo dpkg --add-architecture i386
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y gcc-multilib g++-multilib
|
|
||||||
sudo apt-get install -y \
|
|
||||||
libgirepository-1.0-1:i386 \
|
|
||||||
gir1.2-glib-2.0:i386 \
|
|
||||||
libglib2.0-dev:i386 \
|
|
||||||
gir1.2-secret-1:i386 \
|
|
||||||
libx11-dev:i386 \
|
|
||||||
libxkbfile-dev:i386 \
|
|
||||||
libsecret-1-dev:i386
|
|
||||||
export CFLAGS=-m32
|
|
||||||
export CXXFLAGS=-m32
|
|
||||||
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
|
||||||
elif [[ $BUILDARCH == "arm64" ]]; then
|
|
||||||
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
|
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
|
||||||
sudo dpkg --add-architecture arm64
|
sudo dpkg --add-architecture arm64
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
20
sum.sh
20
sum.sh
@@ -27,21 +27,13 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
sum_file VSCodiumUserSetup-*.exe
|
sum_file VSCodiumUserSetup-*.exe
|
||||||
sum_file VSCodium-win32-*.zip
|
sum_file VSCodium-win32-*.zip
|
||||||
else # linux
|
else # linux
|
||||||
if [[ "$BUILDARCH" == "x64" ]]; then
|
cp vscode/out/*.AppImage .
|
||||||
deb_arch=amd64
|
cp vscode/.build/linux/deb/amd64/deb/*.deb .
|
||||||
rpm_arch=x86_64
|
cp vscode/.build/linux/rpm/x86_64/*.rpm .
|
||||||
|
|
||||||
# app image is x64 only
|
sum_file *.AppImage
|
||||||
sum_file vscode/out/*.AppImage
|
|
||||||
cp vscode/out/*.{sha256,sha1} .
|
|
||||||
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
|
||||||
deb_arch=i386
|
|
||||||
rpm_arch=i386
|
|
||||||
fi
|
|
||||||
sum_file VSCodium-linux*.tar.gz
|
sum_file VSCodium-linux*.tar.gz
|
||||||
sum_file vscode/.build/linux/deb/${deb_arch}/deb/*.deb
|
sum_file *.deb
|
||||||
sum_file vscode/.build/linux/rpm/${rpm_arch}/*.rpm
|
sum_file *.rpm
|
||||||
cp vscode/.build/linux/deb/${deb_arch}/deb/*.{sha256,sha1} .
|
|
||||||
cp vscode/.build/linux/rpm/${rpm_arch}/*.{sha256,sha1} .
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
if [ "$AZURE_TOKEN" != "" ]; then
|
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
||||||
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic $AZURE_TOKEN" -d '{"definition":{"id":1}}' https://dev.azure.com/VSCodium/vscodium/_apis/build/builds?api-version=5.0-preview.5
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@@ -46,4 +46,4 @@ update_setting () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_setting "$TELEMETRY_ENABLE" src/vs/platform/telemetry/common/telemetryService.ts
|
update_setting "$TELEMETRY_ENABLE" src/vs/platform/telemetry/common/telemetryService.ts
|
||||||
update_setting "$TELEMETRY_CRASH_REPORTER" src/vs/workbench/electron-browser/main.contribution.ts
|
update_setting "$TELEMETRY_CRASH_REPORTER" src/vs/workbench/electron-browser/desktop.contribution.ts
|
||||||
|
|||||||
@@ -92,8 +92,8 @@ updateLatestVersion() {
|
|||||||
# thank you https://www.vinaygopinath.me/blog/tech/commit-to-master-branch-on-github-using-travis-ci/
|
# thank you https://www.vinaygopinath.me/blog/tech/commit-to-master-branch-on-github-using-travis-ci/
|
||||||
git clone https://github.com/${VERSIONS_REPO}.git
|
git clone https://github.com/${VERSIONS_REPO}.git
|
||||||
cd versions
|
cd versions
|
||||||
git config user.email "travis@travis-ci.org"
|
git config user.email "vscodium-ci@not-real.com"
|
||||||
git config user.name "Travis CI"
|
git config user.name "VSCodium CI"
|
||||||
git remote rm origin
|
git remote rm origin
|
||||||
git remote add origin https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/${VERSIONS_REPO}.git > /dev/null 2>&1
|
git remote add origin https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/${VERSIONS_REPO}.git > /dev/null 2>&1
|
||||||
cd ..
|
cd ..
|
||||||
@@ -105,8 +105,11 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|||||||
JSON="$(generateJson ${ASSET_NAME})"
|
JSON="$(generateJson ${ASSET_NAME})"
|
||||||
updateLatestVersion "$VERSION_PATH" "$JSON"
|
updateLatestVersion "$VERSION_PATH" "$JSON"
|
||||||
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
||||||
# windows update service supports user and archive types
|
# system installer
|
||||||
# so we will run the commands twice
|
ASSET_NAME=VSCodiumSetup-${BUILDARCH}-${LATEST_MS_TAG}.exe
|
||||||
|
VERSION_PATH="win32/${BUILDARCH}/system"
|
||||||
|
JSON="$(generateJson ${ASSET_NAME})"
|
||||||
|
updateLatestVersion "$VERSION_PATH" "$JSON"
|
||||||
|
|
||||||
# user installer
|
# user installer
|
||||||
ASSET_NAME=VSCodiumUserSetup-${BUILDARCH}-${LATEST_MS_TAG}.exe
|
ASSET_NAME=VSCodiumUserSetup-${BUILDARCH}-${LATEST_MS_TAG}.exe
|
||||||
@@ -122,7 +125,6 @@ elif [[ "$CI_WINDOWS" == "True" ]]; then
|
|||||||
else # linux
|
else # linux
|
||||||
# update service links to tar.gz file
|
# update service links to tar.gz file
|
||||||
# see https://update.code.visualstudio.com/api/update/linux-x64/stable/VERSION
|
# see https://update.code.visualstudio.com/api/update/linux-x64/stable/VERSION
|
||||||
# and https://update.code.visualstudio.com/api/update/linux-ia32/stable/VERSION
|
|
||||||
# as examples
|
# as examples
|
||||||
ASSET_NAME=VSCodium-linux-${BUILDARCH}-${LATEST_MS_TAG}.tar.gz
|
ASSET_NAME=VSCodium-linux-${BUILDARCH}-${LATEST_MS_TAG}.tar.gz
|
||||||
VERSION_PATH="linux/${BUILDARCH}"
|
VERSION_PATH="linux/${BUILDARCH}"
|
||||||
|
|||||||
Reference in New Issue
Block a user