Преглед на файлове

feat: add DISABLE_UPDATE env to disable updates

Baptiste Augrain преди 2 години
родител
ревизия
2f8edd92f3
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      prepare_vscode.sh

+ 4 - 1
prepare_vscode.sh

@@ -100,7 +100,10 @@ setpath "product" "reportIssueUrl" "https://github.com/VSCodium/vscodium/issues/
 setpath "product" "requestFeatureUrl" "https://go.microsoft.com/fwlink/?LinkID=533482"
 setpath "product" "requestFeatureUrl" "https://go.microsoft.com/fwlink/?LinkID=533482"
 setpath "product" "tipsAndTricksUrl" "https://go.microsoft.com/fwlink/?linkid=852118"
 setpath "product" "tipsAndTricksUrl" "https://go.microsoft.com/fwlink/?linkid=852118"
 setpath "product" "twitterUrl" "https://go.microsoft.com/fwlink/?LinkID=533687"
 setpath "product" "twitterUrl" "https://go.microsoft.com/fwlink/?LinkID=533687"
-setpath "product" "updateUrl" "https://vscodium.now.sh"
+
+if [[ "${DISABLE_UPDATE}" != "yes" ]]; then
+  setpath "product" "updateUrl" "https://vscodium.now.sh"
+fo
 
 
 if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
 if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
   setpath "product" "nameShort" "VSCodium - Insiders"
   setpath "product" "nameShort" "VSCodium - Insiders"