mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-17 13:22:52 +10:00
Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
687d644b41 | ||
|
|
cb04b93044 | ||
|
|
ed126b5cb2 | ||
|
|
fabacf1c1a | ||
|
|
8347fbcdc8 | ||
|
|
5dd8c0e6da | ||
|
|
d03f6d5442 | ||
|
|
35f5a5a264 | ||
|
|
ccb2ee47b3 | ||
|
|
a3465c0f1b | ||
|
|
cb031ffd75 | ||
|
|
c440844e99 | ||
|
|
26a5bfcab8 | ||
|
|
e379b37110 | ||
|
|
4612db050a | ||
|
|
2c61228528 | ||
|
|
7b2c725cac | ||
|
|
a8b43ff2a5 | ||
|
|
588db890f0 | ||
|
|
08d8ad26ab | ||
|
|
1501d185c2 | ||
|
|
2fdaec5163 | ||
|
|
818097ca7e | ||
|
|
845f748de5 | ||
|
|
2ea6d93325 | ||
|
|
98a9a1b231 | ||
|
|
3bba077e1e | ||
|
|
6f3791a5ca | ||
|
|
1a3eba742f | ||
|
|
75bbad9a0d | ||
|
|
df742b9ee9 |
11
.travis.yml
11
.travis.yml
@@ -4,10 +4,18 @@ matrix:
|
|||||||
sudo: required
|
sudo: required
|
||||||
env: BUILDARCH=x64
|
env: BUILDARCH=x64
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
- os: linux
|
||||||
|
sudo: required
|
||||||
|
env: BUILDARCH=arm64
|
||||||
|
dist: trusty
|
||||||
|
- os: linux
|
||||||
|
sudo: required
|
||||||
|
env: BUILDARCH=arm
|
||||||
|
dist: trusty
|
||||||
- os: osx
|
- os: osx
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: "10"
|
node_js: "12"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
@@ -40,6 +48,7 @@ deploy:
|
|||||||
- ./*.deb
|
- ./*.deb
|
||||||
- ./*.rpm
|
- ./*.rpm
|
||||||
- ./*.AppImage
|
- ./*.AppImage
|
||||||
|
- ./*.AppImage.zsync
|
||||||
on:
|
on:
|
||||||
all_branches: true
|
all_branches: true
|
||||||
condition: $SHOULD_BUILD = yes
|
condition: $SHOULD_BUILD = yes
|
||||||
|
|||||||
6
DOCS.md
6
DOCS.md
@@ -65,9 +65,9 @@ To copy your settings manually:
|
|||||||
- Copy the contents of settings.json into the same place in VSCodium
|
- Copy the contents of settings.json into the same place in VSCodium
|
||||||
|
|
||||||
## <a id="portable"></a>How do I run VSCodium in portable mode?
|
## <a id="portable"></a>How do I run VSCodium in portable mode?
|
||||||
You can follow the [Portable Mode instructions](https://code.visualstudio.com/docs/editor/portable) from the Visual Studio Code website. For Windows and Linux the instructions can be followed as written. For Mac OS, portable mode is enabled by the existence of a specially named folder. For Visual Studio Code that folder name is `code-portable-data`. For VSCodium, that folder name is `vscodium-portable-data`.
|
You can follow the [Portable Mode instructions](https://code.visualstudio.com/docs/editor/portable) from the Visual Studio Code website.
|
||||||
|
- **Windows** / **Linux** : the instructions can be followed as written.
|
||||||
So to enable portable mode for VSCodium on Mac OS, follow the instructions outlined in the link above, but create a folder named `vscodium-portable-data` instead of `code-portable-data`.
|
- **macOS** : portable mode is enabled by the existence of a specially named folder. For Visual Studio Code that folder name is `code-portable-data`. For VSCodium, that folder name is `codium-portable-data`. So to enable portable mode for VSCodium on Mac OS, follow the instructions outlined in the [link above](https://code.visualstudio.com/docs/editor/portable), but create a folder named `codium-portable-data` instead of `code-portable-data`.
|
||||||
|
|
||||||
## <a id="press-and-hold"></a>How do I press and hold a key and have it repeat in VSCodium (Mac)?
|
## <a id="press-and-hold"></a>How do I press and hold a key and have it repeat in VSCodium (Mac)?
|
||||||
|
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -12,6 +12,8 @@
|
|||||||
[](https://travis-ci.com/VSCodium/vscodium)
|
[](https://travis-ci.com/VSCodium/vscodium)
|
||||||
[](https://github.com/VSCodium/vscodium/blob/master/LICENSE)
|
[](https://github.com/VSCodium/vscodium/blob/master/LICENSE)
|
||||||
[](https://gitter.im/VSCodium/Lobby)
|
[](https://gitter.im/VSCodium/Lobby)
|
||||||
|
[](https://snapcraft.io/codium)
|
||||||
|
[](https://snapcraft.io/codium)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -22,6 +24,7 @@
|
|||||||
- [Install with Brew](#install-with-brew)
|
- [Install with Brew](#install-with-brew)
|
||||||
- [Install with Chocolatey](#install-with-choco)
|
- [Install with Chocolatey](#install-with-choco)
|
||||||
- [Install with Scoop](#install-with-scoop)
|
- [Install with Scoop](#install-with-scoop)
|
||||||
|
- [Install with snap](#install-with-snap)
|
||||||
- [Install with Package Manager](#install-with-package-manager)
|
- [Install with Package Manager](#install-with-package-manager)
|
||||||
- [Install on Arch Linux](#install-on-arch-linux)
|
- [Install on Arch Linux](#install-on-arch-linux)
|
||||||
- [Flatpak Option](#flatpak)
|
- [Flatpak Option](#flatpak)
|
||||||
@@ -55,6 +58,13 @@ scoop bucket add extras
|
|||||||
scoop install vscodium
|
scoop install vscodium
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### <a id="install-with-snap"></a>Install with snap (Linux)
|
||||||
|
VSCodium is available in the [Snap Store](https://snapcraft.io/) as [Codium](https://snapcraft.io/codium), published by the [Snapcrafters](https://github.com/snapcrafters/codium) community.
|
||||||
|
If your Linux distribution has support for [snaps](https://snapcraft.io/docs/installing-snapd):
|
||||||
|
```bash
|
||||||
|
snap install codium
|
||||||
|
```
|
||||||
|
|
||||||
#### <a id="install-with-package-manager"></a>Install with Package Manager (Linux)
|
#### <a id="install-with-package-manager"></a>Install with Package Manager (Linux)
|
||||||
You can always install using the downloads (deb, rpm, tar) on the [releases page](https://github.com/VSCodium/vscodium/releases), but you can also install using your favorite package manager and get automatic updates. [@paulcarroty](https://github.com/paulcarroty) has set up a repository with instructions [here](https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo). Any issues installing VSCodium using your package manager should be directed to that repository's issue tracker.
|
You can always install using the downloads (deb, rpm, tar) on the [releases page](https://github.com/VSCodium/vscodium/releases), but you can also install using your favorite package manager and get automatic updates. [@paulcarroty](https://github.com/paulcarroty) has set up a repository with instructions [here](https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo). Any issues installing VSCodium using your package manager should be directed to that repository's issue tracker.
|
||||||
|
|
||||||
@@ -103,11 +113,11 @@ The builds are run every day, but exit early if there isn't a new release from M
|
|||||||
- [x] OS X (`zip`, `dmg`)
|
- [x] OS X (`zip`, `dmg`)
|
||||||
- [x] Linux x64 (`deb`, `rpm`, `AppImage`, `tar.gz`)
|
- [x] Linux x64 (`deb`, `rpm`, `AppImage`, `tar.gz`)
|
||||||
- [x] Linux x86 (`deb`, `rpm`, `tar.gz`) ([up to v1.35.1](https://code.visualstudio.com/updates/v1_36#_linux-32bit-support-ends))
|
- [x] Linux x86 (`deb`, `rpm`, `tar.gz`) ([up to v1.35.1](https://code.visualstudio.com/updates/v1_36#_linux-32bit-support-ends))
|
||||||
|
- [x] Linux arm64 (`deb`, `tar.gz`)
|
||||||
|
- [x] Linux armhf (`deb`, `tar.gz`)
|
||||||
- [x] Windows x64
|
- [x] Windows x64
|
||||||
- [x] Windows x86
|
- [x] Windows x86
|
||||||
|
|
||||||
The ARM architecture is not currently supported but is being worked on.
|
|
||||||
|
|
||||||
## <a id="donate"></a>Donate
|
## <a id="donate"></a>Donate
|
||||||
If you would like to support the development of VSCodium, feel free to send BTC to `3PgjE95yzBDTrSPxPiqoxSgZFuKPPAix1N`.
|
If you would like to support the development of VSCodium, feel free to send BTC to `3PgjE95yzBDTrSPxPiqoxSgZFuKPPAix1N`.
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ ingredients:
|
|||||||
- deb http://archive.ubuntu.com/ubuntu/ trusty main universe
|
- deb http://archive.ubuntu.com/ubuntu/ trusty main universe
|
||||||
script:
|
script:
|
||||||
- pwd
|
- pwd
|
||||||
- cp ../.build/linux/deb/amd64/deb/*.deb .
|
- cp ../vscode/.build/linux/deb/amd64/deb/*.deb .
|
||||||
- ls codium_*.deb | cut -d _ -f 2 > VERSION
|
- ls codium_*.deb | cut -d _ -f 2 > VERSION
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|||||||
75
build.sh
75
build.sh
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function keep_alive_small() {
|
||||||
|
while true; do
|
||||||
|
echo .
|
||||||
|
read -t 60 < /proc/self/fd/1 > /dev/null 2>&1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
function keep_alive() {
|
function keep_alive() {
|
||||||
while true; do
|
while true; do
|
||||||
date
|
date
|
||||||
@@ -12,68 +19,28 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
echo "LATEST_MS_COMMIT: ${LATEST_MS_COMMIT}"
|
echo "LATEST_MS_COMMIT: ${LATEST_MS_COMMIT}"
|
||||||
echo "BUILD_SOURCEVERSION: ${BUILD_SOURCEVERSION}"
|
echo "BUILD_SOURCEVERSION: ${BUILD_SOURCEVERSION}"
|
||||||
|
|
||||||
cp -rp src/* vscode/
|
|
||||||
cd vscode
|
|
||||||
|
|
||||||
export npm_config_arch="$BUILDARCH"
|
export npm_config_arch="$BUILDARCH"
|
||||||
export npm_config_target_arch="$BUILDARCH"
|
export npm_config_target_arch="$BUILDARCH"
|
||||||
../update_settings.sh
|
|
||||||
|
|
||||||
yarn
|
./prepare_vscode.sh
|
||||||
yarn postinstall
|
|
||||||
mv product.json product.json.bak
|
|
||||||
|
|
||||||
# set fields in product.json
|
cd vscode || exit
|
||||||
tipsAndTricksUrl='setpath(["tipsAndTricksUrl"]; "https://go.microsoft.com/fwlink/?linkid=852118")'
|
|
||||||
twitterUrl='setpath(["twitterUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533687")'
|
|
||||||
requestFeatureUrl='setpath(["requestFeatureUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533482")'
|
|
||||||
documentationUrl='setpath(["documentationUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533484#vscode")'
|
|
||||||
introductoryVideosUrl='setpath(["introductoryVideosUrl"]; "https://go.microsoft.com/fwlink/?linkid=832146")'
|
|
||||||
extensionAllowedBadgeProviders='setpath(["extensionAllowedBadgeProviders"]; ["api.bintray.com", "api.travis-ci.com", "api.travis-ci.org", "app.fossa.io", "badge.fury.io", "badge.waffle.io", "badgen.net", "badges.frapsoft.com", "badges.gitter.im", "badges.greenkeeper.io", "cdn.travis-ci.com", "cdn.travis-ci.org", "ci.appveyor.com", "circleci.com", "cla.opensource.microsoft.com", "codacy.com", "codeclimate.com", "codecov.io", "coveralls.io", "david-dm.org", "deepscan.io", "dev.azure.com", "flat.badgen.net", "gemnasium.com", "githost.io", "gitlab.com", "godoc.org", "goreportcard.com", "img.shields.io", "isitmaintained.com", "marketplace.visualstudio.com", "nodesecurity.io", "opencollective.com", "snyk.io", "travis-ci.com", "travis-ci.org", "visualstudio.com", "vsmarketplacebadge.apphb.com", "www.bithound.io", "www.versioneye.com"])'
|
|
||||||
updateUrl='setpath(["updateUrl"]; "https://vscodium.now.sh")'
|
|
||||||
releaseNotesUrl='setpath(["releaseNotesUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533483#vscode")'
|
|
||||||
keyboardShortcutsUrlMac='setpath(["keyboardShortcutsUrlMac"]; "https://go.microsoft.com/fwlink/?linkid=832143")'
|
|
||||||
keyboardShortcutsUrlLinux='setpath(["keyboardShortcutsUrlLinux"]; "https://go.microsoft.com/fwlink/?linkid=832144")'
|
|
||||||
keyboardShortcutsUrlWin='setpath(["keyboardShortcutsUrlWin"]; "https://go.microsoft.com/fwlink/?linkid=832145")'
|
|
||||||
quality='setpath(["quality"]; "stable")'
|
|
||||||
extensionsGallery='setpath(["extensionsGallery"]; {"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index", "itemUrl": "https://marketplace.visualstudio.com/items"})'
|
|
||||||
nameShort='setpath(["nameShort"]; "VSCodium")'
|
|
||||||
nameLong='setpath(["nameLong"]; "VSCodium")'
|
|
||||||
linuxIconName='setpath(["linuxIconName"]; "vscodium")'
|
|
||||||
applicationName='setpath(["applicationName"]; "codium")'
|
|
||||||
win32MutexName='setpath(["win32MutexName"]; "vscodium")'
|
|
||||||
win32DirName='setpath(["win32DirName"]; "VSCodium")'
|
|
||||||
win32NameVersion='setpath(["win32NameVersion"]; "VSCodium")'
|
|
||||||
win32RegValueName='setpath(["win32RegValueName"]; "VSCodium")'
|
|
||||||
win32AppUserModelId='setpath(["win32AppUserModelId"]; "Microsoft.VSCodium")'
|
|
||||||
win32ShellNameShort='setpath(["win32ShellNameShort"]; "VSCodium")'
|
|
||||||
win32x64UserAppId='setpath (["win32x64UserAppId"]; "{{2E1F05D1-C245-4562-81EE-28188DB6FD17}")'
|
|
||||||
urlProtocol='setpath(["urlProtocol"]; "vscodium")'
|
|
||||||
extensionAllowedProposedApi='setpath(["extensionAllowedProposedApi"]; getpath(["extensionAllowedProposedApi"]) + ["ms-vsliveshare.vsliveshare"])'
|
|
||||||
|
|
||||||
product_json_changes="${tipsAndTricksUrl} | ${twitterUrl} | ${requestFeatureUrl} | ${documentationUrl} | ${introductoryVideosUrl} | ${extensionAllowedBadgeProviders} | ${updateUrl} | ${releaseNotesUrl} | ${keyboardShortcutsUrlMac} | ${keyboardShortcutsUrlLinux} | ${keyboardShortcutsUrlWin} | ${quality} | ${extensionsGallery} | ${nameShort} | ${nameLong} | ${linuxIconName} | ${applicationName} | ${win32MutexName} | ${win32DirName} | ${win32NameVersion} | ${win32RegValueName} | ${win32AppUserModelId} | ${win32ShellNameShort} | ${win32x64UserAppId} | ${urlProtocol} | ${extensionAllowedProposedApi}"
|
|
||||||
cat product.json.bak | jq "${product_json_changes}" > product.json
|
|
||||||
cat product.json
|
|
||||||
../undo_telemetry.sh
|
|
||||||
|
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
|
|
||||||
|
# these tasks are very slow, so using a keep alive to keep travis alive
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
# microsoft adds their apt repo to sources
|
keep_alive_small &
|
||||||
# unless the app name is code-oss
|
else
|
||||||
# as we are renaming the application to vscodium
|
keep_alive &
|
||||||
# we need to edit a line in the post install template
|
|
||||||
sed -i "s/code-oss/codium/" resources/linux/debian/postinst.template
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
KA_PID=$!
|
||||||
|
|
||||||
yarn gulp compile-build
|
yarn gulp compile-build
|
||||||
yarn gulp compile-extensions-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
|
yarn gulp minify-vscode
|
||||||
kill $KA_PID
|
|
||||||
|
|
||||||
yarn gulp minify-vscode-reh
|
yarn gulp minify-vscode-reh
|
||||||
yarn gulp minify-vscode-reh-web
|
yarn gulp minify-vscode-reh-web
|
||||||
@@ -94,14 +61,18 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
yarn gulp "vscode-win32-${BUILDARCH}-system-setup"
|
yarn gulp "vscode-win32-${BUILDARCH}-system-setup"
|
||||||
yarn gulp "vscode-win32-${BUILDARCH}-user-setup"
|
yarn gulp "vscode-win32-${BUILDARCH}-user-setup"
|
||||||
else # linux
|
else # linux
|
||||||
yarn gulp vscode-linux-x64-min-ci
|
yarn gulp vscode-linux-${BUILDARCH}-min-ci
|
||||||
yarn gulp vscode-reh-linux-x64-min-ci
|
yarn gulp vscode-reh-linux-${BUILDARCH}-min-ci
|
||||||
yarn gulp vscode-reh-web-linux-x64-min-ci
|
yarn gulp vscode-reh-web-linux-${BUILDARCH}-min-ci
|
||||||
|
|
||||||
yarn gulp "vscode-linux-${BUILDARCH}-build-deb"
|
yarn gulp "vscode-linux-${BUILDARCH}-build-deb"
|
||||||
yarn gulp "vscode-linux-${BUILDARCH}-build-rpm"
|
if [[ "$BUILDARCH" == "x64" ]]; then
|
||||||
|
yarn gulp "vscode-linux-${BUILDARCH}-build-rpm"
|
||||||
|
fi
|
||||||
. ../create_appimage.sh
|
. ../create_appimage.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
kill $KA_PID
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -34,6 +34,20 @@ if [ "$GITHUB_TOKEN" != "" ]; then
|
|||||||
if [[ "$SHOULD_BUILD" != "yes" ]]; then
|
if [[ "$SHOULD_BUILD" != "yes" ]]; then
|
||||||
echo "Already have all the Linux arm64 builds"
|
echo "Already have all the Linux arm64 builds"
|
||||||
fi
|
fi
|
||||||
|
elif [[ $BUILDARCH == "arm" ]]; then
|
||||||
|
HAVE_ARM_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["armhf.deb"])')
|
||||||
|
HAVE_ARM_TAR=$(echo $VSCODIUM_ASSETS | jq --arg suffix "arm-$LATEST_MS_TAG.tar.gz" 'map(.name) | contains([$suffix])')
|
||||||
|
if [[ "$HAVE_ARM_DEB" != "true" ]]; then
|
||||||
|
echo "Building on Linux arm because we have no DEB"
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
fi
|
||||||
|
if [[ "$HAVE_ARM_TAR" != "true" ]]; then
|
||||||
|
echo "Building on Linux arm because we have no TAR"
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
fi
|
||||||
|
if [[ "$SHOULD_BUILD" != "yes" ]]; then
|
||||||
|
echo "Already have all the Linux arm builds"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
HAVE_64_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["x86_64.rpm"])')
|
HAVE_64_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["x86_64.rpm"])')
|
||||||
HAVE_64_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["amd64.deb"])')
|
HAVE_64_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["amd64.deb"])')
|
||||||
|
|||||||
@@ -4,13 +4,10 @@ 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" == "arm64" ]]; then
|
|
||||||
cd VSCode-linux-arm64
|
|
||||||
tar czf ../VSCodium-linux-arm64-${LATEST_MS_TAG}.tar.gz .
|
|
||||||
else
|
else
|
||||||
cd VSCode-linux-x64
|
cd VSCode-linux-${BUILDARCH}
|
||||||
tar czf ../VSCodium-linux-x64-${LATEST_MS_TAG}.tar.gz .
|
tar czf ../VSCodium-linux-${BUILDARCH}-${LATEST_MS_TAG}.tar.gz .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -5,18 +5,37 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|||||||
brew install jq zip
|
brew install jq zip
|
||||||
else
|
else
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y fakeroot rpm jq
|
sudo apt-get install -y fakeroot jq
|
||||||
if [[ $BUILDARCH == "arm64" ]]; then
|
triplet=
|
||||||
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
|
case $BUILDARCH in
|
||||||
sudo dpkg --add-architecture arm64
|
arm)
|
||||||
|
arch=armhf
|
||||||
|
triplet=arm-linux-gnueabihf
|
||||||
|
;;
|
||||||
|
|
||||||
|
arm64)
|
||||||
|
arch=arm64
|
||||||
|
triplet=aarch64-linux-gnu
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [[ -n "$triplet" ]]; then
|
||||||
|
sed 's/^deb /deb [arch=amd64] '/g -i /etc/apt/sources.list
|
||||||
|
echo "deb [arch=$arch] http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/$arch.list >/dev/null
|
||||||
|
sudo dpkg --add-architecture $arch
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
sudo apt-get install libc6-dev-$arch-cross gcc-$triplet g++-$triplet `apt-cache search x11proto | grep ^x11proto | cut -f 1 -d ' '` xz-utils pkg-config
|
||||||
sudo apt-get install libx11-dev:arm64 libxkbfile-dev:arm64
|
mkdir -p dl
|
||||||
export CC=/usr/bin/aarch64-linux-gnu-gcc
|
cd dl
|
||||||
export CXX=/usr/bin/aarch64-linux-gnu-g++
|
apt-get download libx11-dev:$arch libx11-6:$arch libxkbfile-dev:$arch libxkbfile1:$arch libxau-dev:$arch libxdmcp-dev:$arch libxcb1-dev:$arch libsecret-1-dev:$arch libsecret-1-0:$arch libpthread-stubs0-dev:$arch libglib2.0-dev:$arch libglib2.0-0:$arch libffi-dev:$arch libffi6:$arch zlib1g:$arch libpcre3-dev:$arch libpcre3:$arch
|
||||||
|
for i in *.deb; do ar x $i; sudo tar -C / -xf data.tar.*; rm -f data.tar.*; done
|
||||||
|
cd ..
|
||||||
|
export CC=/usr/bin/$triplet-gcc
|
||||||
|
export CXX=/usr/bin/$triplet-g++
|
||||||
export CC_host=/usr/bin/gcc
|
export CC_host=/usr/bin/gcc
|
||||||
export CXX_host=/usr/bin/g++
|
export CXX_host=/usr/bin/g++
|
||||||
|
export PKG_CONFIG_LIBDIR=/usr/lib/$triplet/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
|
||||||
else
|
else
|
||||||
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
|
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev rpm
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
11
patches/update-cache-path.patch
Normal file
11
patches/update-cache-path.patch
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
--- vscode/src/vs/platform/update/electron-main/updateService.win32.ts 2019-12-08 15:09:44.000000000 -0800
|
||||||
|
+++ src/src/vs/platform/update/electron-main/updateService.win32.ts 2019-12-08 15:12:56.000000000 -0800
|
||||||
|
@@ -55,7 +55,7 @@
|
||||||
|
|
||||||
|
@memoize
|
||||||
|
get cachePath(): Promise<string> {
|
||||||
|
- const result = path.join(tmpdir(), `vscode-update-${product.target}-${process.arch}`);
|
||||||
|
+ const result = path.join(tmpdir(), `vscodium-update-${product.target}-${process.arch}`);
|
||||||
|
return pfs.mkdirp(result, undefined).then(() => result);
|
||||||
|
}
|
||||||
|
|
||||||
58
prepare_vscode.sh
Executable file
58
prepare_vscode.sh
Executable file
@@ -0,0 +1,58 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export npm_config_arch="$BUILDARCH"
|
||||||
|
export npm_config_target_arch="$BUILDARCH"
|
||||||
|
|
||||||
|
cp -rp src/* vscode/
|
||||||
|
cd vscode || exit
|
||||||
|
|
||||||
|
../update_settings.sh
|
||||||
|
|
||||||
|
# apply patches
|
||||||
|
patch -u src/vs/platform/update/electron-main/updateService.win32.ts -i ../patches/update-cache-path.patch
|
||||||
|
|
||||||
|
yarn --frozen-lockfile
|
||||||
|
yarn postinstall
|
||||||
|
mv product.json product.json.bak
|
||||||
|
|
||||||
|
# set fields in product.json
|
||||||
|
tipsAndTricksUrl='setpath(["tipsAndTricksUrl"]; "https://go.microsoft.com/fwlink/?linkid=852118")'
|
||||||
|
twitterUrl='setpath(["twitterUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533687")'
|
||||||
|
requestFeatureUrl='setpath(["requestFeatureUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533482")'
|
||||||
|
documentationUrl='setpath(["documentationUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533484#vscode")'
|
||||||
|
introductoryVideosUrl='setpath(["introductoryVideosUrl"]; "https://go.microsoft.com/fwlink/?linkid=832146")'
|
||||||
|
extensionAllowedBadgeProviders='setpath(["extensionAllowedBadgeProviders"]; ["api.bintray.com", "api.travis-ci.com", "api.travis-ci.org", "app.fossa.io", "badge.fury.io", "badge.waffle.io", "badgen.net", "badges.frapsoft.com", "badges.gitter.im", "badges.greenkeeper.io", "cdn.travis-ci.com", "cdn.travis-ci.org", "ci.appveyor.com", "circleci.com", "cla.opensource.microsoft.com", "codacy.com", "codeclimate.com", "codecov.io", "coveralls.io", "david-dm.org", "deepscan.io", "dev.azure.com", "flat.badgen.net", "gemnasium.com", "githost.io", "gitlab.com", "godoc.org", "goreportcard.com", "img.shields.io", "isitmaintained.com", "marketplace.visualstudio.com", "nodesecurity.io", "opencollective.com", "snyk.io", "travis-ci.com", "travis-ci.org", "visualstudio.com", "vsmarketplacebadge.apphb.com", "www.bithound.io", "www.versioneye.com"])'
|
||||||
|
updateUrl='setpath(["updateUrl"]; "https://vscodium.now.sh")'
|
||||||
|
releaseNotesUrl='setpath(["releaseNotesUrl"]; "https://go.microsoft.com/fwlink/?LinkID=533483#vscode")'
|
||||||
|
keyboardShortcutsUrlMac='setpath(["keyboardShortcutsUrlMac"]; "https://go.microsoft.com/fwlink/?linkid=832143")'
|
||||||
|
keyboardShortcutsUrlLinux='setpath(["keyboardShortcutsUrlLinux"]; "https://go.microsoft.com/fwlink/?linkid=832144")'
|
||||||
|
keyboardShortcutsUrlWin='setpath(["keyboardShortcutsUrlWin"]; "https://go.microsoft.com/fwlink/?linkid=832145")'
|
||||||
|
quality='setpath(["quality"]; "stable")'
|
||||||
|
extensionsGallery='setpath(["extensionsGallery"]; {"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index", "itemUrl": "https://marketplace.visualstudio.com/items"})'
|
||||||
|
nameShort='setpath(["nameShort"]; "VSCodium")'
|
||||||
|
nameLong='setpath(["nameLong"]; "VSCodium")'
|
||||||
|
linuxIconName='setpath(["linuxIconName"]; "vscodium")'
|
||||||
|
applicationName='setpath(["applicationName"]; "codium")'
|
||||||
|
win32MutexName='setpath(["win32MutexName"]; "vscodium")'
|
||||||
|
win32DirName='setpath(["win32DirName"]; "VSCodium")'
|
||||||
|
win32NameVersion='setpath(["win32NameVersion"]; "VSCodium")'
|
||||||
|
win32RegValueName='setpath(["win32RegValueName"]; "VSCodium")'
|
||||||
|
win32AppUserModelId='setpath(["win32AppUserModelId"]; "Microsoft.VSCodium")'
|
||||||
|
win32ShellNameShort='setpath(["win32ShellNameShort"]; "VSCodium")'
|
||||||
|
win32x64UserAppId='setpath (["win32x64UserAppId"]; "{{2E1F05D1-C245-4562-81EE-28188DB6FD17}")'
|
||||||
|
urlProtocol='setpath(["urlProtocol"]; "vscodium")'
|
||||||
|
extensionAllowedProposedApi='setpath(["extensionAllowedProposedApi"]; getpath(["extensionAllowedProposedApi"]) + ["ms-vsliveshare.vsliveshare"])'
|
||||||
|
|
||||||
|
product_json_changes="${tipsAndTricksUrl} | ${twitterUrl} | ${requestFeatureUrl} | ${documentationUrl} | ${introductoryVideosUrl} | ${extensionAllowedBadgeProviders} | ${updateUrl} | ${releaseNotesUrl} | ${keyboardShortcutsUrlMac} | ${keyboardShortcutsUrlLinux} | ${keyboardShortcutsUrlWin} | ${quality} | ${extensionsGallery} | ${nameShort} | ${nameLong} | ${linuxIconName} | ${applicationName} | ${win32MutexName} | ${win32DirName} | ${win32NameVersion} | ${win32RegValueName} | ${win32AppUserModelId} | ${win32ShellNameShort} | ${win32x64UserAppId} | ${urlProtocol} | ${extensionAllowedProposedApi}"
|
||||||
|
cat product.json.bak | jq "${product_json_changes}" > product.json
|
||||||
|
cat product.json
|
||||||
|
|
||||||
|
../undo_telemetry.sh
|
||||||
|
|
||||||
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
|
# microsoft adds their apt repo to sources
|
||||||
|
# unless the app name is code-oss
|
||||||
|
# as we are renaming the application to vscodium
|
||||||
|
# we need to edit a line in the post install template
|
||||||
|
sed -i "s/code-oss/codium/" resources/linux/debian/postinst.template
|
||||||
|
fi
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# env
|
# env
|
||||||
|
ARCH=x86_64
|
||||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
HERE="$(dirname "$(readlink -f "${0}")")"
|
||||||
|
|
||||||
# Use privately bundled apt-get and dpkg-deb if available; can be got on trusty using
|
# Use privately bundled apt-get and dpkg-deb if available; can be got on trusty using
|
||||||
@@ -467,5 +467,6 @@ fi
|
|||||||
# Go out of AppImage
|
# Go out of AppImage
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
export UPDATE_INFORMATION="gh-releases-zsync|VSCodium|vscodium|latest|*.AppImage.zsync"
|
||||||
generate_type2_appimage
|
generate_type2_appimage
|
||||||
ls -lh ../out/*.AppImage
|
ls -lh ../out/*.AppImage*
|
||||||
|
|||||||
6
sum.sh
6
sum.sh
@@ -27,9 +27,9 @@ 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
|
||||||
cp vscode/out/*.AppImage .
|
cp out/*.AppImage .
|
||||||
cp vscode/.build/linux/deb/amd64/deb/*.deb .
|
cp vscode/.build/linux/deb/*/deb/*.deb .
|
||||||
cp vscode/.build/linux/rpm/x86_64/*.rpm .
|
cp vscode/.build/linux/rpm/*/*.rpm .
|
||||||
|
|
||||||
sum_file *.AppImage
|
sum_file *.AppImage
|
||||||
sum_file VSCodium-linux*.tar.gz
|
sum_file VSCodium-linux*.tar.gz
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
steps:
|
steps:
|
||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '10.x'
|
versionSpec: "12.13.0"
|
||||||
- script: |
|
- script: |
|
||||||
choco install jq
|
choco install jq
|
||||||
displayName: 'install jq from choco'
|
displayName: 'install jq from choco'
|
||||||
|
|||||||
Reference in New Issue
Block a user