Skip to content

Commit

Permalink
Add environment variable to disable update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jun 1, 2024
1 parent a4d32dc commit 3e548b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tw_update": true,
"name": "turbowarp-desktop",
"description": "Scratch mod with a compiler, dark mode, a bunch of addons, and more.",
"version": "1.12.1",
Expand Down
4 changes: 4 additions & 0 deletions src-main/update-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const URL = 'https://desktop.turbowarp.org/version.json';
* @returns {boolean}
*/
const isUpdateCheckerAllowed = () => {
if (process.env.TW_DISABLE_UPDATE_CHECKER) {
return false;
}

// Must be enabled in package.json
return !!packageJSON.tw_update;
};
Expand Down

0 comments on commit 3e548b6

Please sign in to comment.