mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-17 21:24:40 +10:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b421c701c | ||
|
|
85da65c0b0 | ||
|
|
1633faf377 | ||
|
|
2564115929 | ||
|
|
dd6e08a285 | ||
|
|
b5df7d5af8 | ||
|
|
8959faeca9 | ||
|
|
7391746c6b | ||
|
|
833fcec1e8 | ||
|
|
576145f38e | ||
|
|
c1dd804250 | ||
|
|
83cfe077ee | ||
|
|
a3129e3f57 | ||
|
|
dfa09d149e | ||
|
|
098cab67bd | ||
|
|
dc649ff259 | ||
|
|
d408fcc060 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
vscode
|
vscode
|
||||||
|
VS*/*
|
||||||
@@ -14,6 +14,8 @@ language: node_js
|
|||||||
node_js: "8"
|
node_js: "8"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||||
- ./install_deps.sh
|
- ./install_deps.sh
|
||||||
- . get_repo.sh
|
- . get_repo.sh
|
||||||
- . check_tags.sh
|
- . check_tags.sh
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -1,9 +1,19 @@
|
|||||||
# VSCodium
|
<div id="vscodium-logo" align="center">
|
||||||
|
<br />
|
||||||
|
<img src="./src/resources/linux/code.png" alt="VSCodium Logo" width="200"/>
|
||||||
|
<h1>VSCodium</h1>
|
||||||
|
<h3>Free/Libre Open Source Software Binaries of VSCode</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
### Free/Libre Open Source Software Binaries of VSCode
|
<div id="badges" align="center">
|
||||||
|
|
||||||
|
[](https://github.com/vscodium/vscodium/releases)
|
||||||
|
[](https://dev.azure.com/vscodium/VSCodium/_build?definitionId=1)
|
||||||
[](https://travis-ci.com/VSCodium/vscodium)
|
[](https://travis-ci.com/VSCodium/vscodium)
|
||||||
[](https://github.com/vscodium/vscodium/releases)
|
|
||||||
[](https://github.com/VSCodium/vscodium/blob/master/LICENSE)
|
[](https://github.com/VSCodium/vscodium/blob/master/LICENSE)
|
||||||
|
[](https://gitter.im/VSCodium/Lobby)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
- [Download/Install](#download-install)
|
- [Download/Install](#download-install)
|
||||||
@@ -56,8 +66,7 @@ For more information on getting all the telemetry disabled and tips for migratin
|
|||||||
- [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)
|
||||||
- [ ] Windows
|
- [X] Windows
|
||||||
- The plan is to build the Windows executable with [AppVeyor](https://appveyor.com). PRs are welcome :blue_heart:
|
|
||||||
|
|
||||||
The ARM architecture is not currently supported but is actively being worked on.
|
The ARM architecture is not currently supported but is actively being worked on.
|
||||||
|
|
||||||
|
|||||||
59
azure-pipelines.yml
Normal file
59
azure-pipelines.yml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
pool:
|
||||||
|
vmImage: 'vs2017-win2016'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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-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'
|
||||||
25
build.sh
25
build.sh
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
cp -rp src/* vscode/
|
cp -rp src/* vscode/
|
||||||
cd vscode
|
cd vscode
|
||||||
@@ -7,7 +6,6 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
if [[ "$BUILDARCH" == "ia32" ]]; then
|
if [[ "$BUILDARCH" == "ia32" ]]; then
|
||||||
export npm_config_arch=ia32
|
export npm_config_arch=ia32
|
||||||
fi
|
fi
|
||||||
|
|
||||||
../update_settings.sh
|
../update_settings.sh
|
||||||
|
|
||||||
yarn
|
yarn
|
||||||
@@ -18,28 +16,37 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
|
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
|
|
||||||
if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
# microsoft adds their apt repo to sources
|
# microsoft adds their apt repo to sources
|
||||||
# unless the app name is code-oss
|
# unless the app name is code-oss
|
||||||
# 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
|
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
||||||
npm run gulp vscode-linux-ia32-min
|
npm run gulp vscode-linux-ia32-min
|
||||||
npm run gulp vscode-linux-ia32-build-deb
|
npm run gulp vscode-linux-ia32-build-deb
|
||||||
npm run gulp vscode-linux-ia32-build-rpm
|
npm run gulp vscode-linux-ia32-build-rpm
|
||||||
unset npm_config_arch
|
unset npm_config_arch
|
||||||
elif [[ "$BUILDARCH" == "arm64" ]]; then
|
elif [[ "$BUILDARCH" == "arm64" ]]; then
|
||||||
npm run gulp vscode-linux-arm64-min
|
npm run gulp vscode-linux-arm64-min
|
||||||
npm run gulp vscode-linux-arm64-build-deb
|
npm run gulp vscode-linux-arm64-build-deb
|
||||||
# npm run gulp vscode-linux-arm64-build-rpm
|
# npm run gulp vscode-linux-arm64-build-rpm
|
||||||
|
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
||||||
|
npx gulp vscode-win32-x64-min
|
||||||
|
npx gulp vscode-win32-x64-copy-inno-updater
|
||||||
|
npx gulp vscode-win32-x64-inno-updater
|
||||||
|
npx gulp vscode-win32-x64-system-setup
|
||||||
|
npx gulp vscode-win32-x64-user-setup
|
||||||
|
npx gulp vscode-win32-x64-archive
|
||||||
else
|
else
|
||||||
npm run gulp vscode-linux-x64-min
|
npm run gulp vscode-linux-x64-min
|
||||||
npm run gulp vscode-linux-x64-build-deb
|
npm run gulp vscode-linux-x64-build-deb
|
||||||
npm run gulp vscode-linux-x64-build-rpm
|
npm run gulp vscode-linux-x64-build-rpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|||||||
34
check_tags.ps1
Normal file
34
check_tags.ps1
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
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"
|
||||||
|
echo "Github response: ${GITHUB_RESPONSE}"
|
||||||
|
$VSCODIUM_ASSETS= $GITHUB_RESPONSE | jq '.assets'
|
||||||
|
echo "VSCodium assets: ${VSCODIUM_ASSETS}"
|
||||||
|
|
||||||
|
# if we just don't have the github token, get out fast
|
||||||
|
if (!$env:MAPPED_GITHUB_TOKEN -or $env:MAPPED_GITHUB_TOKEN -like "*GITHUB_TOKEN*") {
|
||||||
|
echo "This build does not have the GH token"
|
||||||
|
echo $env:MAPPED_GITHUB_TOKEN
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$VSCODIUM_ASSETS) {
|
||||||
|
echo "Release assets do not exist at all, continuing build"
|
||||||
|
$SHOULD_BUILD = 'yes'
|
||||||
|
}
|
||||||
|
|
||||||
|
$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"
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
brew update
|
brew update
|
||||||
brew install yarn --without-node
|
|
||||||
brew install jq zip
|
brew install jq zip
|
||||||
else
|
else
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
Reference in New Issue
Block a user