diff options
author | Matthias Lisin | 2019-10-30 00:47:31 +0100 |
---|---|---|
committer | Matthias Lisin | 2019-10-30 00:47:31 +0100 |
commit | 837cec2a29149566b224600048c8e9d1a25f8344 (patch) | |
tree | ce57d548af5ba10a9d4fc0e1323025a1736f8b8e /disable-update-check.patch | |
parent | f98748263a000738a1500b0dc835320bac74a430 (diff) | |
download | aur-837cec2a29149566b224600048c8e9d1a25f8344.tar.gz |
upgpkg: ubports-installer-git 3e68c62a
- Update disable-update-check.patch
- Force use of system android-tools
Diffstat (limited to 'disable-update-check.patch')
-rw-r--r-- | disable-update-check.patch | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/disable-update-check.patch b/disable-update-check.patch index 89360785525b..15dfd0d3b3a3 100644 --- a/disable-update-check.patch +++ b/disable-update-check.patch @@ -1,20 +1,26 @@ 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 @@ - }); +--- package.orig/src/main.js 2019-10-30 00:09:52.833991579 +0100 ++++ package.new/src/main.js 2019-10-30 00:13:11.936926036 +0100 +@@ -393,22 +393,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.") -- }); +- 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:', + mainWindow.loadURL( + url.format({ + pathname: path.join(__dirname, "html/index.pug"), |