mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
feat: set update.mode to none when updates are disabled (#2507)
This commit is contained in:
9
patches/disable-update.patch.yet
Normal file
9
patches/disable-update.patch.yet
Normal file
@@ -0,0 +1,9 @@
|
||||
diff --git a/src/vs/platform/update/common/update.config.contribution.ts b/src/vs/platform/update/common/update.config.contribution.ts
|
||||
index d96926b..43f5d90 100644
|
||||
--- a/src/vs/platform/update/common/update.config.contribution.ts
|
||||
+++ b/src/vs/platform/update/common/update.config.contribution.ts
|
||||
@@ -20,3 +20,3 @@ configurationRegistry.registerConfiguration({
|
||||
enum: ['none', 'manual', 'start', 'default'],
|
||||
- default: 'default',
|
||||
+ default: 'none',
|
||||
scope: ConfigurationScope.APPLICATION,
|
||||
@@ -25,6 +25,10 @@ echo "BINARY_NAME=\"${BINARY_NAME}\""
|
||||
echo "GH_REPO_PATH=\"${GH_REPO_PATH}\""
|
||||
echo "ORG_NAME=\"${ORG_NAME}\""
|
||||
|
||||
if [[ "${DISABLE_UPDATE}" == "yes" ]]; then
|
||||
mv ../patches/disable-update.patch.yet ../patches/disable-update.patch
|
||||
fi
|
||||
|
||||
for file in ../patches/*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
|
||||
Reference in New Issue
Block a user