Skip to content

Commit

Permalink
Fix update cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
stripedpajamas committed Dec 9, 2019
1 parent 3bba077 commit 98a9a1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
export npm_config_target_arch="$BUILDARCH"
../update_settings.sh

# apply patches
patch -u src/vs/platform/update/electron-main/updateService.win32.ts -i ../patches/update-cache-path.patch

yarn
yarn postinstall
mv product.json product.json.bak
Expand Down
11 changes: 11 additions & 0 deletions patches/update-cache-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- vscode/src/vs/platform/update/electron-main/updateService.win32.ts 2019-12-08 15:09:44.000000000 -0800
+++ src/src/vs/platform/update/electron-main/updateService.win32.ts 2019-12-08 15:12:56.000000000 -0800
@@ -55,7 +55,7 @@

@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, undefined).then(() => result);
}

0 comments on commit 98a9a1b

Please sign in to comment.