diff options
Diffstat (limited to 'disable-update-check.patch')
-rw-r--r-- | disable-update-check.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/disable-update-check.patch b/disable-update-check.patch new file mode 100644 index 000000000000..89360785525b --- /dev/null +++ b/disable-update-check.patch @@ -0,0 +1,20 @@ +diff -ura package.orig/src/main.js package.new/src/main.js +--- package.orig/src/main.js 2019-10-12 21:18:46.099712720 +0200 ++++ package.new/src/main.js 2019-10-12 21:25:12.285643001 +0200 +@@ -266,16 +266,6 @@ + }); + }); + +- // Task we need only on the first start +- mainWindow.webContents.once("did-finish-load", () => { +- utils.getUpdateAvailable().then(() => { +- utils.log.info("This is not the latest version of the UBports Installer! Please update: https://devices.ubuntu-touch.io/installer/" + (global.packageInfo.package ? global.packageInfo.package : "")); +- mainWindow.webContents.send("user:update-available"); +- }).catch(() => { +- utils.log.debug("This is the latest version.") +- }); +- }); +- + mainWindow.loadURL(url.format({ + pathname: path.join(__dirname, 'html/index.pug'), + protocol: 'file:', |