-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #666 from daiyam/fix-build
- Loading branch information
Showing
11 changed files
with
163 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
--- 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 | ||
@@ -55,7 +55,7 @@ | ||
|
||
@@ -56,3 +56,3 @@ | ||
@memoize | ||
get cachePath(): Promise<string> { | ||
- const result = path.join(tmpdir(), `vscode-update-${product.target}-${process.arch}`); | ||
+ const result = path.join(tmpdir(), `vscodium-update-${product.target}-${process.arch}`); | ||
return pfs.mkdirp(result).then(() => result); | ||
} | ||
|