mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-18 05:34:41 +10:00
Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac42eadd68 | ||
|
|
1b9d7adc60 | ||
|
|
532959ee9a | ||
|
|
f9f92ce008 | ||
|
|
0f3afe4cba | ||
|
|
562f4d484f | ||
|
|
cf4adbf6f8 | ||
|
|
b8a1f7c979 | ||
|
|
34953d11f3 | ||
|
|
ab7d14add8 | ||
|
|
4fe1ea6727 | ||
|
|
a61e56c152 | ||
|
|
a02839b466 | ||
|
|
890377a893 | ||
|
|
e95b3f0732 | ||
|
|
c38cc161c0 | ||
|
|
4cf7166a48 | ||
|
|
f5bb3f6007 | ||
|
|
a1596e9820 | ||
|
|
3ccdd1171d | ||
|
|
4dbc77dbba | ||
|
|
1991d1af61 | ||
|
|
56cce9d14c | ||
|
|
cf28585423 | ||
|
|
8096387e74 | ||
|
|
7b764d5c5b | ||
|
|
31ad142664 | ||
|
|
a4ea6d60a4 |
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**Please confirm that this problem is VSCodium-specific**
|
||||||
|
- [ ] This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.
|
||||||
|
|
||||||
|
**Please confirm that the issue/resolution isn't already documented**
|
||||||
|
- [ ] I checked [the Docs page](https://github.com/VSCodium/vscodium/blob/master/DOCS.md) and my issue is not mentioned there.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Desktop (please complete the following information):**
|
||||||
|
- OS: [e.g. Mac OS, Ubuntu 16.04, etc]
|
||||||
|
- Architecture [e.g. x64, ia32, arm64]
|
||||||
|
- Version [e.g. 1.33.0]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
10
.travis.yml
10
.travis.yml
@@ -2,12 +2,13 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
|
env: BUILDARCH=x64
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
env: BUILDARCH=ia32
|
env: BUILDARCH=ia32
|
||||||
# - os: linux
|
- os: linux
|
||||||
# sudo: required
|
sudo: required
|
||||||
# env: BUILDARCH=arm64
|
env: BUILDARCH=arm64
|
||||||
- os: osx
|
- os: osx
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
@@ -16,12 +17,13 @@ node_js: "8"
|
|||||||
before_install:
|
before_install:
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||||
- ./install_deps.sh
|
- . install_deps.sh
|
||||||
- . get_repo.sh
|
- . get_repo.sh
|
||||||
- . check_tags.sh
|
- . check_tags.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
|
- ./trigger-azure.sh
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- ./create_zip.sh
|
- ./create_zip.sh
|
||||||
|
|||||||
7
DOCS.md
7
DOCS.md
@@ -28,6 +28,13 @@ _(For example the C# extension `ms-vscode.csharp` sends tracking data to Microso
|
|||||||
## <a id="extensions-marketplace"></a>Extensions + Marketplace
|
## <a id="extensions-marketplace"></a>Extensions + Marketplace
|
||||||
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)
|
||||||
|
|
||||||
|
If you use the [code-settings-sync](https://github.com/shanalikhan/code-settings-sync) extension, you may have [an issue](https://github.com/VSCodium/vscodium/issues/72) installing extensions (via the plugin). Refer to [this workaround](https://github.com/shanalikhan/code-settings-sync/issues/668#issuecomment-462065341) to get it working properly.
|
||||||
|
|
||||||
|
### Proprietary Debugging Tools
|
||||||
|
The debugger provided with Microsoft's [C# extension](https://github.com/OmniSharp/omnisharp-vscode) as well as the (Windows) debugger provided with their [C++ extension](https://github.com/Microsoft/vscode-cpptools) are very restrictively licensed to only work with the offical Visual Studio Code build. See [this comment in the C# extension repo](https://github.com/OmniSharp/omnisharp-vscode/issues/2491#issuecomment-418811364) and [this comment in the C++ extension repo](https://github.com/Microsoft/vscode-cpptools/issues/21#issuecomment-248349017).
|
||||||
|
|
||||||
|
A workaround exists to get debugging working in C# projects, by using Samsung's opensource [netcoredbg](https://github.com/Samsung/netcoredbg) package. See [this comment](https://github.com/VSCodium/vscodium/issues/82#issue-409806641) for instructions on how to set that up.
|
||||||
|
|
||||||
## <a id="migrating"></a>Migrating from Visual Studio Code to VSCodium
|
## <a id="migrating"></a>Migrating from Visual Studio Code to VSCodium
|
||||||
VSCodium (and a freshly cloned copy of vscode built from source) stores its extension files in `~/.vscode-oss`. So if you currently have Visual Studio Code installed, your extensions won't automatically populate. You can reinstall your extensions from the Marketplace in VSCodium, or copy the `extensions` from `~/.vscode/extensions` to `~/.vscode-oss/extensions`.
|
VSCodium (and a freshly cloned copy of vscode built from source) stores its extension files in `~/.vscode-oss`. So if you currently have Visual Studio Code installed, your extensions won't automatically populate. You can reinstall your extensions from the Marketplace in VSCodium, or copy the `extensions` from `~/.vscode/extensions` to `~/.vscode-oss/extensions`.
|
||||||
|
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -18,7 +18,9 @@
|
|||||||
## Table of Contents
|
## Table of Contents
|
||||||
- [Download/Install](#download-install)
|
- [Download/Install](#download-install)
|
||||||
- [Install with Brew](#install-with-brew)
|
- [Install with Brew](#install-with-brew)
|
||||||
|
- [Install with Chocolatey](#install-with-choco)
|
||||||
- [Install with Package Manager](#install-with-package-manager)
|
- [Install with Package Manager](#install-with-package-manager)
|
||||||
|
- [Flatpak Option](#flatpak)
|
||||||
- [Why Does This Exist](#why)
|
- [Why Does This Exist](#why)
|
||||||
- [More Info](#more-info)
|
- [More Info](#more-info)
|
||||||
- [Supported OS](#supported-os)
|
- [Supported OS](#supported-os)
|
||||||
@@ -26,6 +28,8 @@
|
|||||||
## <a id="download-install"></a>Download/Install
|
## <a id="download-install"></a>Download/Install
|
||||||
:tada: :tada: [Download latest release here](https://github.com/VSCodium/vscodium/releases) :tada: :tada:
|
:tada: :tada: [Download latest release here](https://github.com/VSCodium/vscodium/releases) :tada: :tada:
|
||||||
|
|
||||||
|
[More info / helpful tips are here.](https://github.com/VSCodium/vscodium/blob/master/DOCS.md)
|
||||||
|
|
||||||
#### <a id="install-with-brew"></a>Install with Brew (Mac)
|
#### <a id="install-with-brew"></a>Install with Brew (Mac)
|
||||||
If you are on a Mac and have [Homebrew](https://brew.sh/) installed:
|
If you are on a Mac and have [Homebrew](https://brew.sh/) installed:
|
||||||
```bash
|
```bash
|
||||||
@@ -34,9 +38,18 @@ brew cask install vscodium
|
|||||||
|
|
||||||
_Note: if you see "App can’t be opened because it is from an unidentified developer" when opening VSCodium the first time, you can right-click the application and choose Open. This should only be required the first time opening on a Mac._
|
_Note: if you see "App can’t be opened because it is from an unidentified developer" when opening VSCodium the first time, you can right-click the application and choose Open. This should only be required the first time opening on a Mac._
|
||||||
|
|
||||||
|
#### <a id="install-with-choco"></a>Install with Chocolatey (Windows)
|
||||||
|
If you use Windows and have [Chocolatey](https://chocolatey.org) installed (thanks to [@Thilas](https://github.com/Thilas)):
|
||||||
|
```bash
|
||||||
|
choco install vscodium
|
||||||
|
```
|
||||||
|
|
||||||
#### <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.
|
||||||
|
|
||||||
|
#### <a id="flatpak"></a>Flatpak Option (Linux)
|
||||||
|
VSCodium is not available as a Flatpak app, but [@amtlib-dot-dll](https://github.com/amtlib-dot-dll) has done significant work to package up the open source build of Visual Studio Code without telemetry, very similarly to VSCodium. That package is available [here](https://flathub.org/apps/details/com.visualstudio.code.oss) and the build repo is [here](https://github.com/flathub/com.visualstudio.code.oss).
|
||||||
|
|
||||||
## <a id="why"></a>Why Does This Exist
|
## <a id="why"></a>Why Does This Exist
|
||||||
This repository contains a build file to generate FLOSS release binaries of Microsoft's VSCode.
|
This repository contains a build file to generate FLOSS release binaries of Microsoft's VSCode.
|
||||||
|
|
||||||
@@ -46,7 +59,7 @@ Microsoft's downloads of Visual Studio Code are licensed under [this not-FLOSS l
|
|||||||
>
|
>
|
||||||
> When you clone and build from the vscode repo, none of these endpoints are configured in the default product.json. Therefore, you generate a "clean" build, without the Microsoft customizations, which is by default licensed under the MIT license
|
> When you clone and build from the vscode repo, none of these endpoints are configured in the default product.json. Therefore, you generate a "clean" build, without the Microsoft customizations, which is by default licensed under the MIT license
|
||||||
|
|
||||||
This repo exists so that you don't have to download+build from source. The build scripts in this repo clone Microsoft's vscode repo, run the build commands, and upload the resulting binaries to [GitHub releases](https://github.com/VSCodium/vscodium/releases). __These binaries are licensed under the MIT license. Telemetry is enabled by a build flag which we do not pass.__
|
This repo exists so that you don't have to download+build from source. The build scripts in this repo clone Microsoft's vscode repo, run the build commands, and upload the resulting binaries to [GitHub releases](https://github.com/VSCodium/vscodium/releases). __These binaries are licensed under the MIT license. Telemetry is disabled.__
|
||||||
|
|
||||||
If you want to build from source yourself, head over to [Microsoft's vscode repo](https://github.com/Microsoft/vscode) and follow their [instructions](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run). This repo exists to make it easier to get the latest version of MIT-licensed VSCode.
|
If you want to build from source yourself, head over to [Microsoft's vscode repo](https://github.com/Microsoft/vscode) and follow their [instructions](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run). This repo exists to make it easier to get the latest version of MIT-licensed VSCode.
|
||||||
|
|
||||||
@@ -62,13 +75,16 @@ Microsoft's build process does download additional files. This was brought up in
|
|||||||
## <a id="more-info"></a>More Info
|
## <a id="more-info"></a>More Info
|
||||||
For more information on getting all the telemetry disabled and tips for migrating from Visual Studio Code to VSCodium, have a look at this [Docs](https://github.com/VSCodium/vscodium/blob/master/DOCS.md) page.
|
For more information on getting all the telemetry disabled and tips for migrating from Visual Studio Code to VSCodium, have a look at this [Docs](https://github.com/VSCodium/vscodium/blob/master/DOCS.md) page.
|
||||||
|
|
||||||
|
Please note that some Visual Studio Code extensions have licenses that restrict their use to the official Visual Studio Code builds and therefore do not work with VSCodium. See [this note](https://github.com/VSCodium/vscodium/blob/master/DOCS.md#proprietary-debugging-tools) on the Docs page for what's been found so far and possible workarounds.
|
||||||
|
|
||||||
## <a id="supported-os"></a>Supported OS
|
## <a id="supported-os"></a>Supported OS
|
||||||
- [x] OSX x64 (zipped app file)
|
- [x] OSX x64 (zipped app file)
|
||||||
- [x] Linux x64 (`.deb`, `.rpm`, and `.tar.gz` files)
|
- [x] Linux x64 (`.deb`, `.rpm`, and `.tar.gz` files)
|
||||||
- [x] Linux x86 (`.deb`, `.rpm`, and `.tar.gz` files)
|
- [x] Linux x86 (`.deb`, `.rpm`, and `.tar.gz` files)
|
||||||
- [X] Windows
|
- [x] Windows x86
|
||||||
|
- [x] Windows x64
|
||||||
|
|
||||||
The ARM architecture is not currently supported but is actively being worked on.
|
The ARM architecture is not currently supported but is being worked on.
|
||||||
|
|
||||||
## <a id="license"></a>License
|
## <a id="license"></a>License
|
||||||
MIT
|
MIT
|
||||||
|
|||||||
@@ -1,59 +1,16 @@
|
|||||||
pool:
|
jobs:
|
||||||
vmImage: 'vs2017-win2016'
|
- job: Windows
|
||||||
|
pool:
|
||||||
|
vmImage: VS2017-Win2016
|
||||||
|
variables:
|
||||||
|
BUILDARCH: x64
|
||||||
|
steps:
|
||||||
|
- template: win32-build.yml
|
||||||
|
|
||||||
steps:
|
- job: Windows32
|
||||||
- script: |
|
pool:
|
||||||
choco install jq
|
vmImage: VS2017-Win2016
|
||||||
displayName: 'install jq from choco'
|
variables:
|
||||||
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
|
BUILDARCH: ia32
|
||||||
displayName: 'Install Yarn'
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- template: win32-build.yml
|
||||||
displayName: 'Use Python 2.x'
|
|
||||||
inputs:
|
|
||||||
versionSpec: 2.x
|
|
||||||
- task: ShellScript@2
|
|
||||||
displayName: 'get VSCode sources'
|
|
||||||
inputs:
|
|
||||||
scriptPath: get_repo.sh
|
|
||||||
- powershell: |
|
|
||||||
$LATEST_MS_TAG="$(git -C vscode describe --tags)"
|
|
||||||
Write-Host "##vso[task.setvariable variable=LATEST_MS_TAG]$LATEST_MS_TAG"
|
|
||||||
displayName: 'set env LATEST_MS_TAG'
|
|
||||||
- task: PowerShell@2
|
|
||||||
inputs:
|
|
||||||
filePath: 'check_tags.ps1'
|
|
||||||
env:
|
|
||||||
MAPPED_GITHUB_TOKEN: $(GITHUB_TOKEN)
|
|
||||||
- script: |
|
|
||||||
git -C vscode status
|
|
||||||
displayName: 'vscode status'
|
|
||||||
- powershell: |
|
|
||||||
bash ./build.sh
|
|
||||||
displayName: 'go build it!'
|
|
||||||
- bash: |
|
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-x64\\system-setup\\VSCodeSetup.exe VSCodiumSetup-x64-${LATEST_MS_TAG}.exe; fi
|
|
||||||
displayName: 'move the system setup'
|
|
||||||
- bash: |
|
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-x64\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-x64-${LATEST_MS_TAG}.exe; fi
|
|
||||||
displayName: 'move the user setup'
|
|
||||||
- bash: |
|
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-x64\\archive\\VSCode-win32-x64.zip VSCodium-win32-x64-${LATEST_MS_TAG}.zip; fi
|
|
||||||
displayName: 'move the zip folder'
|
|
||||||
- task: PublishBuildArtifacts@1
|
|
||||||
displayName: 'Publish artifacts: system-setup'
|
|
||||||
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
||||||
inputs:
|
|
||||||
PathtoPublish: 'VSCodiumSetup-x64-$(LATEST_MS_TAG).exe'
|
|
||||||
ArtifactName: 'system_setup'
|
|
||||||
- task: PublishBuildArtifacts@1
|
|
||||||
displayName: 'Publish artifacts: user-setup'
|
|
||||||
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
||||||
inputs:
|
|
||||||
PathtoPublish: 'VSCodiumUserSetup-x64-$(LATEST_MS_TAG).exe'
|
|
||||||
ArtifactName: 'user_setup'
|
|
||||||
- task: PublishBuildArtifacts@1
|
|
||||||
displayName: 'Publish artifacts: archive'
|
|
||||||
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
||||||
inputs:
|
|
||||||
PathtoPublish: 'VSCodium-win32-x64-$(LATEST_MS_TAG).zip'
|
|
||||||
ArtifactName: 'archive'
|
|
||||||
38
build.sh
38
build.sh
@@ -3,9 +3,8 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
cp -rp src/* vscode/
|
cp -rp src/* vscode/
|
||||||
cd vscode
|
cd vscode
|
||||||
|
|
||||||
if [[ "$BUILDARCH" == "ia32" ]]; then
|
export npm_config_arch="$BUILDARCH"
|
||||||
export npm_config_arch=ia32
|
export npm_config_target_arch="$BUILDARCH"
|
||||||
fi
|
|
||||||
../update_settings.sh
|
../update_settings.sh
|
||||||
|
|
||||||
yarn
|
yarn
|
||||||
@@ -22,30 +21,21 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
# as we are renaming the application to vscodium
|
# as we are renaming the application to vscodium
|
||||||
# we need to edit a line in the post install template
|
# we need to edit a line in the post install template
|
||||||
sed -i "s/code-oss/vscodium/" resources/linux/debian/postinst.template
|
sed -i "s/code-oss/vscodium/" resources/linux/debian/postinst.template
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
npm run gulp vscode-darwin-min
|
npm run gulp -- "vscode-darwin-min"
|
||||||
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
|
||||||
npm run gulp vscode-linux-ia32-min
|
|
||||||
npm run gulp vscode-linux-ia32-build-deb
|
|
||||||
npm run gulp vscode-linux-ia32-build-rpm
|
|
||||||
unset npm_config_arch
|
|
||||||
elif [[ "$BUILDARCH" == "arm64" ]]; then
|
|
||||||
npm run gulp vscode-linux-arm64-min
|
|
||||||
npm run gulp vscode-linux-arm64-build-deb
|
|
||||||
# npm run gulp vscode-linux-arm64-build-rpm
|
|
||||||
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
||||||
npx gulp vscode-win32-x64-min
|
cp LICENSE.txt LICENSE.rtf # windows build expects rtf license
|
||||||
npx gulp vscode-win32-x64-copy-inno-updater
|
npm run gulp -- "vscode-win32-${BUILDARCH}-min"
|
||||||
npx gulp vscode-win32-x64-inno-updater
|
npm run gulp -- "vscode-win32-${BUILDARCH}-inno-updater"
|
||||||
npx gulp vscode-win32-x64-system-setup
|
npm run gulp -- "vscode-win32-${BUILDARCH}-system-setup"
|
||||||
npx gulp vscode-win32-x64-user-setup
|
npm run gulp -- "vscode-win32-${BUILDARCH}-user-setup"
|
||||||
npx gulp vscode-win32-x64-archive
|
npm run gulp -- "vscode-win32-${BUILDARCH}-archive"
|
||||||
else
|
else # linux
|
||||||
npm run gulp vscode-linux-x64-min
|
npm run gulp -- "vscode-linux-${BUILDARCH}-min"
|
||||||
npm run gulp vscode-linux-x64-build-deb
|
npm run gulp -- "vscode-linux-${BUILDARCH}-build-deb"
|
||||||
npm run gulp vscode-linux-x64-build-rpm
|
npm run gulp -- "vscode-linux-${BUILDARCH}-build-rpm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
echo "tag: $env:LATEST_MS_TAG"
|
echo "tag: $env:LATEST_MS_TAG"
|
||||||
$GITHUB_RESPONSE = curl.exe -s -H "Authorization: token $env:MAPPED_GITHUB_TOKEN" "https://api.github.com/repos/vscodium/vscodium/releases/tags/$env:LATEST_MS_TAG"
|
$REPO_URI = [uri]$env:BUILD_REPOSITORY_URI
|
||||||
|
$USER_REPO = $REPO_URI."LocalPath"
|
||||||
|
echo $USER_REPO
|
||||||
|
$GITHUB_RESPONSE = curl.exe -s -H "Authorization: token $env:MAPPED_GITHUB_TOKEN" "https://api.github.com/repos$USER_REPO/releases/tags/$env:LATEST_MS_TAG"
|
||||||
echo "Github response: ${GITHUB_RESPONSE}"
|
echo "Github response: ${GITHUB_RESPONSE}"
|
||||||
$VSCODIUM_ASSETS= $GITHUB_RESPONSE | jq '.assets'
|
$VSCODIUM_ASSETS = $GITHUB_RESPONSE | jq '.assets'
|
||||||
echo "VSCodium assets: ${VSCODIUM_ASSETS}"
|
echo "VSCodium assets: ${VSCODIUM_ASSETS}"
|
||||||
|
|
||||||
# if we just don't have the github token, get out fast
|
# if we just don't have the github token, get out fast
|
||||||
@@ -11,24 +14,25 @@ if (!$env:MAPPED_GITHUB_TOKEN -or $env:MAPPED_GITHUB_TOKEN -like "*GITHUB_TOKEN*
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$VSCODIUM_ASSETS) {
|
if ($VSCODIUM_ASSETS -eq "null" -or !$VSCODIUM_ASSETS) {
|
||||||
echo "Release assets do not exist at all, continuing build"
|
echo "Release assets do not exist at all, continuing build"
|
||||||
$SHOULD_BUILD = 'yes'
|
$SHOULD_BUILD = 'yes'
|
||||||
|
} else {
|
||||||
|
$WindowsAssets = ($VSCODIUM_ASSETS | ConvertFrom-Json) | Where-Object { $_.name.Contains('exe') }
|
||||||
|
$SYSTEM_SETUP = $WindowsAssets | Where-Object { $_.name.Contains('Setup') }
|
||||||
|
$USER_SETUP = $WindowsAssets | Where-Object { $_.name.Contains('User') }
|
||||||
|
if (!$SYSTEM_SETUP) {
|
||||||
|
echo "Building on Windows because we have no system-setup.exe";
|
||||||
|
$SHOULD_BUILD = 'yes'
|
||||||
|
}
|
||||||
|
elseif (!$USER_SETUP) {
|
||||||
|
echo "Building on Windows because we have no user-setup.exe";
|
||||||
|
$SHOULD_BUILD = 'yes'
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "Already have all the Windows builds"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$WindowsAssets = ($VSCODIUM_ASSETS | ConvertFrom-Json) | Where-Object { $_.name.Contains('exe') }
|
|
||||||
$SYSTEM_SETUP = $WindowsAssets | Where-Object { $_.name.Contains('Setup') }
|
|
||||||
$USER_SETUP = $WindowsAssets | Where-Object { $_.name.Contains('User') }
|
|
||||||
if (!$SYSTEM_SETUP) {
|
|
||||||
echo "Building on Windows because we have no system-setup.exe";
|
|
||||||
$SHOULD_BUILD = 'yes'
|
|
||||||
}
|
|
||||||
elseif (!$USER_SETUP) {
|
|
||||||
echo "Building on Windows because we have no user-setup.exe";
|
|
||||||
$SHOULD_BUILD = 'yes'
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "Already have all the Windows builds"
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "##vso[task.setvariable variable=SHOULD_BUILD]$SHOULD_BUILD"
|
Write-Host "##vso[task.setvariable variable=SHOULD_BUILD]$SHOULD_BUILD"
|
||||||
@@ -3,16 +3,16 @@
|
|||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
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 ../VSCode-darwin-${LATEST_MS_TAG}.zip ./*
|
zip -r -X -y ../VSCodium-darwin-${LATEST_MS_TAG}.zip ./*
|
||||||
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
||||||
cd VSCode-linux-ia32
|
cd VSCode-linux-ia32
|
||||||
tar czf ../VSCode-linux-ia32-${LATEST_MS_TAG}.tar.gz .
|
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 ../VSCode-linux-arm64-${LATEST_MS_TAG}.tar.gz .
|
tar czf ../VSCodium-linux-arm64-${LATEST_MS_TAG}.tar.gz .
|
||||||
else
|
else
|
||||||
cd VSCode-linux-x64
|
cd VSCode-linux-x64
|
||||||
tar czf ../VSCode-linux-x64-${LATEST_MS_TAG}.tar.gz .
|
tar czf ../VSCodium-linux-x64-${LATEST_MS_TAG}.tar.gz .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -5,16 +5,33 @@ 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 libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
|
sudo apt-get install -y fakeroot rpm jq
|
||||||
if [[ "$BUILDARCH" == "ia32" ]]; then
|
if [[ "$BUILDARCH" == "ia32" ]]; then
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libc6-dev-i386 gcc-multilib g++-multilib
|
sudo apt-get install -y gcc-multilib g++-multilib
|
||||||
sudo apt-get install libx11-dev:i386 libxkbfile-dev:i386
|
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
|
elif [[ $BUILDARCH == "arm64" ]]; then
|
||||||
# Use the default C / C++ compilers,
|
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
|
||||||
# because some makefiles default to CC:=gcc:
|
sudo dpkg --add-architecture arm64
|
||||||
export CC=/usr/bin/cc
|
sudo apt-get update
|
||||||
export CXX=/usr/bin/c++
|
sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||||
|
sudo apt-get install libx11-dev:arm64 libxkbfile-dev:arm64
|
||||||
|
export CC=/usr/bin/aarch64-linux-gnu-gcc
|
||||||
|
export CXX=/usr/bin/aarch64-linux-gnu-g++
|
||||||
|
export CC_host=/usr/bin/gcc
|
||||||
|
export CXX_host=/usr/bin/g++
|
||||||
|
else
|
||||||
|
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
7
trigger-azure.sh
Executable file
7
trigger-azure.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
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
|
||||||
59
win32-build.yml
Normal file
59
win32-build.yml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: '8.x'
|
||||||
|
- script: |
|
||||||
|
choco install jq
|
||||||
|
displayName: 'install jq from choco'
|
||||||
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
|
||||||
|
displayName: 'Install Yarn'
|
||||||
|
- task: UsePythonVersion@0
|
||||||
|
displayName: 'Use Python 2.x'
|
||||||
|
inputs:
|
||||||
|
versionSpec: 2.x
|
||||||
|
- task: ShellScript@2
|
||||||
|
displayName: 'get VSCode sources'
|
||||||
|
inputs:
|
||||||
|
scriptPath: get_repo.sh
|
||||||
|
- powershell: |
|
||||||
|
$LATEST_MS_TAG="$(git -C vscode describe --tags)"
|
||||||
|
Write-Host "##vso[task.setvariable variable=LATEST_MS_TAG]$LATEST_MS_TAG"
|
||||||
|
displayName: 'set env LATEST_MS_TAG'
|
||||||
|
- task: PowerShell@2
|
||||||
|
inputs:
|
||||||
|
filePath: 'check_tags.ps1'
|
||||||
|
env:
|
||||||
|
MAPPED_GITHUB_TOKEN: $(GITHUB_TOKEN)
|
||||||
|
- script: |
|
||||||
|
git -C vscode status
|
||||||
|
displayName: 'vscode status'
|
||||||
|
- powershell: |
|
||||||
|
bash ./build.sh
|
||||||
|
displayName: 'go build it!'
|
||||||
|
- bash: |
|
||||||
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\system-setup\\VSCodeSetup.exe VSCodiumSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi
|
||||||
|
displayName: 'move the system setup'
|
||||||
|
- bash: |
|
||||||
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi
|
||||||
|
displayName: 'move the user setup'
|
||||||
|
- bash: |
|
||||||
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\archive\\VSCode-win32-$(BUILDARCH).zip VSCodium-win32-$(BUILDARCH)-${LATEST_MS_TAG}.zip; fi
|
||||||
|
displayName: 'move the zip folder'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
displayName: 'Publish artifacts: system-setup'
|
||||||
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
||||||
|
inputs:
|
||||||
|
PathtoPublish: 'VSCodiumSetup-$(BUILDARCH)-$(LATEST_MS_TAG).exe'
|
||||||
|
ArtifactName: 'system_setup'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
displayName: 'Publish artifacts: user-setup'
|
||||||
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
||||||
|
inputs:
|
||||||
|
PathtoPublish: 'VSCodiumUserSetup-$(BUILDARCH)-$(LATEST_MS_TAG).exe'
|
||||||
|
ArtifactName: 'user_setup'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
displayName: 'Publish artifacts: archive'
|
||||||
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
||||||
|
inputs:
|
||||||
|
PathtoPublish: 'VSCodium-win32-$(BUILDARCH)-$(LATEST_MS_TAG).zip'
|
||||||
|
ArtifactName: 'archive'
|
||||||
Reference in New Issue
Block a user