From 3bba077e1e7dd21ef7a49677fea924143ae1b2c0 Mon Sep 17 00:00:00 2001 From: Peter Squicciarini Date: Sun, 8 Dec 2019 14:59:36 -0800 Subject: [PATCH 1/2] Update DOCS.md Correct portable instructions. Closes #295 --- DOCS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS.md b/DOCS.md index af741ee..64692aa 100644 --- a/DOCS.md +++ b/DOCS.md @@ -65,9 +65,9 @@ To copy your settings manually: - Copy the contents of settings.json into the same place in VSCodium ## How do I run VSCodium in portable mode? -You can follow the [Portable Mode instructions](https://code.visualstudio.com/docs/editor/portable) from the Visual Studio Code website. For Windows and Linux the instructions can be followed as written. For Mac OS, portable mode is enabled by the existence of a specially named folder. For Visual Studio Code that folder name is `code-portable-data`. For VSCodium, that folder name is `vscodium-portable-data`. +You can follow the [Portable Mode instructions](https://code.visualstudio.com/docs/editor/portable) from the Visual Studio Code website. For Windows and Linux the instructions can be followed as written. For Mac OS, portable mode is enabled by the existence of a specially named folder. For Visual Studio Code that folder name is `code-portable-data`. For VSCodium, that folder name is `codium-portable-data`. -So to enable portable mode for VSCodium on Mac OS, follow the instructions outlined in the link above, but create a folder named `vscodium-portable-data` instead of `code-portable-data`. +So to enable portable mode for VSCodium on Mac OS, follow the instructions outlined in the link above, but create a folder named `codium-portable-data` instead of `code-portable-data`. ## How do I press and hold a key and have it repeat in VSCodium (Mac)? From 98a9a1b231704480dfa9e1e13a316b9e7bb1b3b2 Mon Sep 17 00:00:00 2001 From: Peter Squicciarini Date: Sun, 8 Dec 2019 15:19:44 -0800 Subject: [PATCH 2/2] Fix update cache path --- build.sh | 3 +++ patches/update-cache-path.patch | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 patches/update-cache-path.patch diff --git a/build.sh b/build.sh index a08167a..83bb418 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/patches/update-cache-path.patch b/patches/update-cache-path.patch new file mode 100644 index 0000000..2fabbe2 --- /dev/null +++ b/patches/update-cache-path.patch @@ -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 { +- 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); + } +