mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 20:00:15 +10:00
Merge branch 'master' into fix-binary
This commit is contained in:
30
.github/workflows/linux.yml
vendored
30
.github/workflows/linux.yml
vendored
@@ -42,6 +42,9 @@ jobs:
|
|||||||
- name: Install Yarn
|
- name: Install Yarn
|
||||||
run: npm install -g yarn
|
run: npm install -g yarn
|
||||||
|
|
||||||
|
- name: Check PR or cron
|
||||||
|
run: ./check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
|
||||||
@@ -49,6 +52,25 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./check_tags.sh
|
run: ./check_tags.sh
|
||||||
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
|
- name: Compute cache key
|
||||||
|
id: yarnCacheKey
|
||||||
|
run: echo "::set-output name=value::$(node build/azure-pipelines/computeYarnCacheKey.js)"
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- name: Get yarn cache directory path
|
||||||
|
id: yarnCacheDirPath
|
||||||
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- name: Cache yarn directory
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ steps.yarnCacheDirPath.outputs.dir }}
|
||||||
|
key: linux-${{ matrix.npm_arch }}-yarnCacheDir-${{ steps.yarnCacheKey.outputs.value }}
|
||||||
|
restore-keys: linux-${{ matrix.npm_arch }}-yarnCacheDir-
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
@@ -61,15 +83,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd VSCode-linux-${VSCODE_ARCH}
|
cd VSCode-linux-${VSCODE_ARCH}
|
||||||
tar czf ../VSCodium-linux-${VSCODE_ARCH}-${LATEST_MS_TAG}.tar.gz .
|
tar czf ../VSCodium-linux-${VSCODE_ARCH}-${LATEST_MS_TAG}.tar.gz .
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Generate shasums
|
- name: Generate shasums
|
||||||
run: ./sum.sh
|
run: ./sum.sh
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.LATEST_MS_TAG }}
|
tag_name: ${{ env.LATEST_MS_TAG }}
|
||||||
files: |
|
files: |
|
||||||
@@ -84,7 +106,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update versions repo
|
- name: Update versions repo
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: ./update_version.sh
|
run: ./update_version.sh
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
|
|||||||
35
.github/workflows/macos.yml
vendored
35
.github/workflows/macos.yml
vendored
@@ -21,6 +21,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12.14.1
|
node-version: 12.14.1
|
||||||
|
|
||||||
|
- name: Check PR or cron
|
||||||
|
run: |
|
||||||
|
. check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: |
|
run: |
|
||||||
. get_repo.sh
|
. get_repo.sh
|
||||||
@@ -30,6 +34,25 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
. check_tags.sh
|
. check_tags.sh
|
||||||
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
|
- name: Compute cache key
|
||||||
|
id: yarnCacheKey
|
||||||
|
run: echo "::set-output name=value::$(node build/azure-pipelines/computeYarnCacheKey.js)"
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- name: Get yarn cache directory path
|
||||||
|
id: yarnCacheDirPath
|
||||||
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- name: Cache yarn directory
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ steps.yarnCacheDirPath.outputs.dir }}
|
||||||
|
key: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-${{ steps.yarnCacheKey.outputs.value }}
|
||||||
|
restore-keys: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
@@ -42,7 +65,7 @@ jobs:
|
|||||||
CERTIFICATE_OSX_P12: ${{ secrets.CERTIFICATE_OSX_P12 }}
|
CERTIFICATE_OSX_P12: ${{ secrets.CERTIFICATE_OSX_P12 }}
|
||||||
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
|
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
|
||||||
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
|
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: |
|
run: |
|
||||||
if [ -d "VSCode-darwin-${VSCODE_ARCH}" ]; then # just in case the build failed
|
if [ -d "VSCode-darwin-${VSCODE_ARCH}" ]; then # just in case the build failed
|
||||||
cd "VSCode-darwin-${VSCODE_ARCH}"
|
cd "VSCode-darwin-${VSCODE_ARCH}"
|
||||||
@@ -61,7 +84,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd "VSCode-darwin-${VSCODE_ARCH}"
|
cd "VSCode-darwin-${VSCODE_ARCH}"
|
||||||
zip -r -X -y ../VSCodium-darwin-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip ./*.app
|
zip -r -X -y ../VSCodium-darwin-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip ./*.app
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: DMG the release
|
- name: DMG the release
|
||||||
run: |
|
run: |
|
||||||
@@ -69,15 +92,15 @@ jobs:
|
|||||||
npx create-dmg VSCodium.app ..
|
npx create-dmg VSCodium.app ..
|
||||||
mv "../VSCodium ${LATEST_MS_TAG}.dmg" "../VSCodium.${VSCODE_ARCH}.${LATEST_MS_TAG}.dmg"
|
mv "../VSCodium ${LATEST_MS_TAG}.dmg" "../VSCodium.${VSCODE_ARCH}.${LATEST_MS_TAG}.dmg"
|
||||||
popd
|
popd
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Generate shasums
|
- name: Generate shasums
|
||||||
run: ./sum.sh
|
run: ./sum.sh
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.LATEST_MS_TAG }}
|
tag_name: ${{ env.LATEST_MS_TAG }}
|
||||||
files: |
|
files: |
|
||||||
@@ -88,7 +111,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update versions repo
|
- name: Update versions repo
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: ./update_version.sh
|
run: ./update_version.sh
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
|
|||||||
31
.github/workflows/windows.yml
vendored
31
.github/workflows/windows.yml
vendored
@@ -34,6 +34,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '2.x'
|
python-version: '2.x'
|
||||||
|
|
||||||
|
- name: Check PR or cron
|
||||||
|
run: ./check_cron_or_pr.sh
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -43,6 +47,25 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./check_tags.sh
|
run: ./check_tags.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
|
- name: Compute cache key
|
||||||
|
id: yarnCacheKey
|
||||||
|
run: echo "::set-output name=value::$(node build/azure-pipelines/computeYarnCacheKey.js)"
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- name: Get yarn cache directory path
|
||||||
|
id: yarnCacheDirPath
|
||||||
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- name: Cache yarn directory
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ steps.yarnCacheDirPath.outputs.dir }}
|
||||||
|
key: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-${{ steps.yarnCacheKey.outputs.value }}
|
||||||
|
restore-keys: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
@@ -59,16 +82,16 @@ jobs:
|
|||||||
mv vscode\\.build\\win32-${VSCODE_ARCH}\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
|
mv vscode\\.build\\win32-${VSCODE_ARCH}\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
|
||||||
mv vscode\\.build\\win32-${VSCODE_ARCH}\\archive\\VSCode-win32-${VSCODE_ARCH}.zip VSCodium-win32-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip
|
mv vscode\\.build\\win32-${VSCODE_ARCH}\\archive\\VSCode-win32-${VSCODE_ARCH}.zip VSCodium-win32-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip
|
||||||
shell: bash
|
shell: bash
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Generate shasums
|
- name: Generate shasums
|
||||||
run: ./sum.sh
|
run: ./sum.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.LATEST_MS_TAG }}
|
tag_name: ${{ env.LATEST_MS_TAG }}
|
||||||
files: |
|
files: |
|
||||||
@@ -80,7 +103,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update versions repo
|
- name: Update versions repo
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: ./update_version.sh
|
run: ./update_version.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|||||||
24
build/azure-pipelines/computeYarnCacheKey.js
Normal file
24
build/azure-pipelines/computeYarnCacheKey.js
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
const fs = require("fs");
|
||||||
|
const crypto = require("crypto");
|
||||||
|
const path = require("path");
|
||||||
|
const { dirs } = require('../../vscode/build/npm/dirs');
|
||||||
|
|
||||||
|
const ROOT = path.join(__dirname, '../../vscode');
|
||||||
|
|
||||||
|
const shasum = crypto.createHash('sha1');
|
||||||
|
|
||||||
|
shasum.update(fs.readFileSync(path.join(ROOT, '.yarnrc')));
|
||||||
|
shasum.update(fs.readFileSync(path.join(ROOT, 'remote/.yarnrc')));
|
||||||
|
|
||||||
|
// Add `yarn.lock` files
|
||||||
|
for (let dir of dirs) {
|
||||||
|
const yarnLockPath = path.join(ROOT, dir, 'yarn.lock');
|
||||||
|
shasum.update(fs.readFileSync(yarnLockPath));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add any other command line arguments
|
||||||
|
for (let i = 2; i < process.argv.length; i++) {
|
||||||
|
shasum.update(process.argv[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
process.stdout.write(shasum.digest('hex'));
|
||||||
8
build/build_linux.sh
Executable file
8
build/build_linux.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -rf VSCode*
|
||||||
|
rm -rf vscode
|
||||||
|
|
||||||
|
./get_repo.sh
|
||||||
|
|
||||||
|
SHOULD_BUILD=yes CI_BUILD=no OS_NAME=linux VSCODE_ARCH=x64 ./build.sh
|
||||||
8
build/build_macos.sh
Executable file
8
build/build_macos.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -rf VSCode*
|
||||||
|
rm -rf vscode
|
||||||
|
|
||||||
|
. get_repo.sh
|
||||||
|
|
||||||
|
SHOULD_BUILD=yes CI_BUILD=no OS_NAME=osx VSCODE_ARCH=x64 . build.sh
|
||||||
15
build/build_windows.ps1
Executable file
15
build/build_windows.ps1
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
# powershell -ExecutionPolicy ByPass -File build_windows.ps1
|
||||||
|
|
||||||
|
$env:Path += ";C:\Program Files\Git\bin"
|
||||||
|
|
||||||
|
Remove-Item -Recurse -Force VSCode*
|
||||||
|
Remove-Item -Recurse -Force vscode
|
||||||
|
|
||||||
|
bash ./get_repo.sh
|
||||||
|
|
||||||
|
$Env:SHOULD_BUILD = 'yes'
|
||||||
|
$Env:CI_BUILD = 'no'
|
||||||
|
$Env:OS_NAME = 'windows'
|
||||||
|
$Env:VSCODE_ARCH = 'x64'
|
||||||
|
|
||||||
|
bash ./build.sh
|
||||||
19
check_cron_or_pr.sh
Executable file
19
check_cron_or_pr.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ $github.event.number ]]; then
|
||||||
|
echo "It's a PR"
|
||||||
|
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
export SHOULD_DEPLOY="no"
|
||||||
|
else
|
||||||
|
echo "It's a cron"
|
||||||
|
|
||||||
|
export SHOULD_DEPLOY="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $GITHUB_ENV ]]; then
|
||||||
|
echo "SHOULD_BUILD=$SHOULD_BUILD" >> $GITHUB_ENV
|
||||||
|
echo "SHOULD_DEPLOY=$SHOULD_DEPLOY" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
@@ -9,6 +9,7 @@ echo "Got the latest MS tag: ${LATEST_MS_TAG}"
|
|||||||
git clone https://github.com/Microsoft/vscode.git --branch $LATEST_MS_TAG --depth 1
|
git clone https://github.com/Microsoft/vscode.git --branch $LATEST_MS_TAG --depth 1
|
||||||
|
|
||||||
# for GH actions
|
# for GH actions
|
||||||
|
if [[ $GITHUB_ENV ]]; then
|
||||||
echo "LATEST_MS_COMMIT=$LATEST_MS_COMMIT" >> $GITHUB_ENV
|
echo "LATEST_MS_COMMIT=$LATEST_MS_COMMIT" >> $GITHUB_ENV
|
||||||
echo "LATEST_MS_TAG=$LATEST_MS_TAG" >> $GITHUB_ENV
|
echo "LATEST_MS_TAG=$LATEST_MS_TAG" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|||||||
@@ -13,4 +13,4 @@
|
|||||||
/usr/share/bash-completion/completions/@@NAME@@
|
/usr/share/bash-completion/completions/@@NAME@@
|
||||||
/usr/share/zsh/site-functions/_@@NAME@@
|
/usr/share/zsh/site-functions/_@@NAME@@
|
||||||
+
|
+
|
||||||
++%config(noreplace) /usr/share/@@NAME@@/resources/app/product.json
|
+%config(noreplace) /usr/share/@@NAME@@/resources/app/product.json
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
--- vscode/src/vs/platform/update/electron-main/updateService.win32.ts 2021-02-05 11:59:17.564060663 -0600
|
--- vscode/src/vs/platform/update/electron-main/updateService.win32.ts 2021-02-05 11:59:17.564060663 -0600
|
||||||
+++ src/src/vs/platform/update/electron-main/updateService.win32.ts 2021-02-05 11:59:39.780745778 -0600
|
+++ src/src/vs/platform/update/electron-main/updateService.win32.ts 2021-02-05 11:59:39.780745778 -0600
|
||||||
@@ -55,7 +55,7 @@
|
@@ -56,3 +56,3 @@
|
||||||
|
|
||||||
@memoize
|
@memoize
|
||||||
get cachePath(): Promise<string> {
|
get cachePath(): Promise<string> {
|
||||||
- const result = path.join(tmpdir(), `vscode-update-${product.target}-${process.arch}`);
|
- const result = path.join(tmpdir(), `vscode-update-${product.target}-${process.arch}`);
|
||||||
+ const result = path.join(tmpdir(), `vscodium-update-${product.target}-${process.arch}`);
|
+ const result = path.join(tmpdir(), `vscodium-update-${product.target}-${process.arch}`);
|
||||||
return pfs.mkdirp(result).then(() => result);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user