From 83847916cabfdd2584adff5fa16ac83f035b23c3 Mon Sep 17 00:00:00 2001 From: Peter Squicciarini Date: Mon, 13 Aug 2018 11:14:15 -0400 Subject: [PATCH] Testing build --- .travis.yml | 25 +++++++++++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 12 ++++++++++++ build.sh | 15 +++++++++++++++ create_zip.sh | 11 +++++++++++ install_deps.sh | 10 ++++++++++ 6 files changed, 94 insertions(+) create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 README.md create mode 100755 build.sh create mode 100755 create_zip.sh create mode 100755 install_deps.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1ed4201 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +if: tag IS present + +os: + - osx + - linux + +before_install: + - ./install_deps.sh + - git clone https://github.com/Microsoft/vscode.git + +script: + - ./build.sh + +before_deploy: + - ./create_zip.sh + +deploy: + provider: releases + skip_cleanup: true + api_key: + secure: DKYMvOsXNwFDFoqiNDIt8g/5w/BcCHg7ieY6lAJU0Hu2V7san/gqJGG2asKPNBQpCoiWzdIjyCqlZFhWiZpKmEN560bALAcO0fPQXnRum/mACYPDcO/OZrK2F/muJyy1r5l9SseL9SmkAGdBilXO2kfvquH9wQD7/Zb1djLMclUctb84POtl2Nr1u6y0OxftOTANcIh9qbRO2Tdk3kvH8khvHv3dRo8RU6zoq1xxY5sLpeFDXPThGeBVfU2KV6b/hfLUrvIlX20zVRuDmgBMp73xD+K+9yZeXwaoiB2HxGlDmtYhBEhWG47a3IOgvXPfLjAiRSNfHSfESCHcQZ5piQhRfEIGlpMPaSXF3AORNxy3OnSUE7WyIuKWXFpOlgxho7uARl1lrrln8ySVvuqLdYG5VSK+2BdZnwSjr1Lem2WqVaYKMBDHuqCEHZzpWFvG/ehhzfFWcEmQRXyVksShnAz517OcZmMKYreICCnf7qCrpe5QNN1M/Tz60L2XgsnwGGT1o5fj68Ho1gtXl1+AHC0QVULO2LszrFMh1hRUOckgNQ6THDUrZGbX3t36GmtUfPHaE1Fn9yKH28HX86A7KlwqvEKUmkMKnNcZfdA5alQfS75a2S4sxYSEpR1hTFO+w7cZTTu+SJHCWu+gP5dpr2q0oNJfKngkVUMt7V8tbn0= + file_glob: true + file: ./*.zip + on: + tag: true \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..12bfd3f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Peter Squicciarini + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..df45761 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +## VSCodium + +This repository contains a build file to generate FLOSS release binaries of Microsoft's VSCode. + +[Download binaries here](https://github.com/VSCodium/vscodium/releases) + +Microsoft's downloads of VSCode are licensed under [this not-FLOSS license](https://code.visualstudio.com/license). That's why this repo exists. So you don't have to download+build from source. + +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) + +## License +MIT \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..1151489 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cd vscode +yarn +mv product.json product.json.bak +cat product.json.bak | jq '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"})' > product.json +export NODE_ENV=production + +if [[ "$TRAVIS_OS_NAME" === "osx" ]]; then + npx gulp vscode-darwin-min +else + npx gulp vscode-linux-x64-min +fi + +cd .. \ No newline at end of file diff --git a/create_zip.sh b/create_zip.sh new file mode 100755 index 0000000..8ddcf07 --- /dev/null +++ b/create_zip.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ "$TRAVIS_OS_NAME" === "osx" ]]; then + cd VSCode-darwin + zip -r ../VSCode-darwin-${TRAVIS_TAG}.zip ./* +else + cd VSCode-linux-x64 + zip -r ../VSCode-linux-x64-${TRAVIS_TAG}.zip ./* +fi + +cd .. \ No newline at end of file diff --git a/install_deps.sh b/install_deps.sh new file mode 100755 index 0000000..7bc669e --- /dev/null +++ b/install_deps.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + brew update + brew install node python yarn jq zip +else + sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm + nvm install 8 + nvm use 8 +fi \ No newline at end of file