mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-22 02:50:14 +10:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
058f0db4f3 | ||
|
|
cbe7f17b5a |
@@ -1,5 +1,3 @@
|
|||||||
if: tag IS blank
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
|
|||||||
@@ -8,5 +8,8 @@ Microsoft's downloads of VSCode are licensed under [this not-FLOSS license](http
|
|||||||
|
|
||||||
Until something more open comes around, we use the Microsoft Marketplace/Extensions in the `product.json` file. Those links are licensed under MIT as per [the comments on this issue.](https://github.com/Microsoft/vscode/issues/31168#issuecomment-317319063)
|
Until something more open comes around, we use the Microsoft Marketplace/Extensions in the `product.json` file. Those links are licensed under MIT as per [the comments on this issue.](https://github.com/Microsoft/vscode/issues/31168#issuecomment-317319063)
|
||||||
|
|
||||||
|
### Supported OS/arch
|
||||||
|
Currently we are only building OSX (zip) and Linux x64 (deb, rpm, and tar). If you are familiar with building Windows binaries on Travis CI + Wine please put in a PR! :blue_heart:
|
||||||
|
|
||||||
## License
|
## License
|
||||||
MIT
|
MIT
|
||||||
@@ -1,12 +1,50 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if git rev-parse $LATEST_MS_TAG >/dev/null 2>&1
|
GITHUB_RESPONSE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/vscodium/vscodium/releases/tags/$LATEST_MS_TAG)
|
||||||
then
|
echo "Github response: ${GITHUB_RESPONSE}"
|
||||||
echo "Latest MS tag ${LATEST_MS_TAG} already exists in VSCodium. Bail"
|
VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets')
|
||||||
else
|
echo "VSCodium assets: ${VSCODIUM_ASSETS}"
|
||||||
echo "New MS tag found, continuing build"
|
|
||||||
git config --local user.name "Travis CI"
|
# if we just don't have the github token, get out fast
|
||||||
git config --local user.email "builds@travis-ci.com"
|
if [ "$GITHUB_TOKEN" != "" ]; then
|
||||||
git tag $LATEST_MS_TAG
|
if [ "$VSCODIUM_ASSETS" != "null" ]; then
|
||||||
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
|
HAVE_MAC=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["zip"])')
|
||||||
|
if [[ "$HAVE_MAC" != "true" ]]; then
|
||||||
|
echo "Building on Mac because we have no ZIP"
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
HAVE_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["rpm"])')
|
||||||
|
HAVE_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["deb"])')
|
||||||
|
HAVE_TAR=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["tar.gz"])')
|
||||||
|
if [[ "$HAVE_RPM" != "true" ]]; then
|
||||||
|
echo "Building on Linux because we have no RPM"
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
fi
|
||||||
|
if [[ "$HAVE_DEB" != "true" ]]; then
|
||||||
|
echo "Building on Linux because we have no DEB"
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
fi
|
||||||
|
if [[ "$HAVE_TAR" != "true" ]]; then
|
||||||
|
echo "Building on Linux because we have no TAR"
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
fi
|
||||||
|
if [[ "$SHOULD_BUILD" != "yes" ]]; then
|
||||||
|
echo "Already have all the Linux builds"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Release assets do not exist at all, continuing build"
|
||||||
export SHOULD_BUILD="yes"
|
export SHOULD_BUILD="yes"
|
||||||
|
if git rev-parse $LATEST_MS_TAG >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
export TRAVIS_TAG=$LATEST_MS_TAG
|
||||||
|
else
|
||||||
|
git config --local user.name "Travis CI"
|
||||||
|
git config --local user.email "builds@travis-ci.com"
|
||||||
|
git tag $LATEST_MS_TAG
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,6 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|||||||
brew install yarn --without-node
|
brew install yarn --without-node
|
||||||
brew install jq zip
|
brew install jq zip
|
||||||
else
|
else
|
||||||
|
sudo apt-get update
|
||||||
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm
|
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user