mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-21 03:04:30 +10:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06cc20f63b | ||
|
|
88503d7855 | ||
|
|
b44a4f56c4 | ||
|
|
72781d2f52 |
13
.travis.yml
13
.travis.yml
@@ -3,10 +3,6 @@ matrix:
|
|||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
env: BUILDARCH=x64
|
env: BUILDARCH=x64
|
||||||
# arm64 builds don't work yet
|
|
||||||
# - os: linux
|
|
||||||
# sudo: required
|
|
||||||
# env: BUILDARCH=arm64
|
|
||||||
- os: osx
|
- os: osx
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
@@ -41,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
|
||||||
|
|||||||
14
sum.sh
14
sum.sh
@@ -27,13 +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
|
||||||
sum_file vscode/out/*.AppImage
|
cp vscode/out/*.AppImage .
|
||||||
sum_file VSCodium-linux*.tar.gz
|
cp vscode/.build/linux/deb/amd64/deb/*.deb .
|
||||||
sum_file vscode/.build/linux/deb/amd64/deb/*.deb
|
cp vscode/.build/linux/rpm/x86_64/*.rpm .
|
||||||
sum_file vscode/.build/linux/rpm/x86_64/*.rpm
|
|
||||||
|
|
||||||
cp vscode/out/*.{sha256,sha1} .
|
sum_file *.AppImage
|
||||||
cp vscode/.build/linux/deb/amd64/deb/*.{sha256,sha1} .
|
sum_file VSCodium-linux*.tar.gz
|
||||||
cp vscode/.build/linux/rpm/x86_64/*.{sha256,sha1} .
|
sum_file *.deb
|
||||||
|
sum_file *.rpm
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user