summarylogtreecommitdiffstats
path: root/01-disable-update-check.patch
diff options
context:
space:
mode:
authorml2020-12-22 22:18:01 +0100
committerml2020-12-22 22:22:12 +0100
commit7fb6918dbbec66bef524cd381db11fd83503327f (patch)
tree4512cf8422b95494a9a58e59a0fb62681d16e34b /01-disable-update-check.patch
parent034c9331f9a7d84675abd5afa028117173902e67 (diff)
downloadaur-7fb6918dbbec66bef524cd381db11fd83503327f.tar.gz
updpkg: ubports-installer-git 0.8.2_beta.r0.ga55cc1a-1
Diffstat (limited to '01-disable-update-check.patch')
-rw-r--r--01-disable-update-check.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/01-disable-update-check.patch b/01-disable-update-check.patch
new file mode 100644
index 00000000000..70994acc6fd
--- /dev/null
+++ b/01-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 2020-12-22 21:55:07.535806928 +0100
++++ package.new/src/main.js 2020-12-22 21:58:31.700431931 +0100
+@@ -66,16 +66,6 @@
+ // Tasks we need for every start and restart
+ mainWindow.webContents.on("did-finish-load", () => core.prepare(cli.file));
+
+- // Task we need only on the first start
+- mainWindow.webContents.once("did-finish-load", () => {
+- updater
+- .isOutdated()
+- .then(updateUrl => {
+- if (updateUrl) mainEvent.emit("user:update-available", updateUrl);
+- })
+- .catch(e => log.debug(e)); // Ignore errors, since this is non-essential
+- });
+-
+ mainWindow.loadURL(
+ url.format({
+ pathname: path.join(__dirname, "html/index.html"),