summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorkitsunyan2019-07-26 18:19:24 +0300
committerkitsunyan2019-07-26 18:19:24 +0300
commit64fb0e930917e03cb6cb06a7f94eaba4a41a8452 (patch)
treed3ba102f4327a8045c89f9776c04c632645e093a /PKGBUILD
parent4ac774023c83e1fe0583428ef6c5b48c1a6761ba (diff)
downloadaur-64fb0e930917e03cb6cb06a7f94eaba4a41a8452.tar.gz
Disable updater
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 82d79b97667..1ced330d738 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,6 +20,11 @@ prepare() {
bsdtar -xf "../drawio-desktop-$pkgver.zip" -C .
rm -rf "META-INF" "WEB-INF"
+
+ # disable updater
+ sed -e '/electron-updater/d' -i 'package.json'
+ local updater='const autoUpdater = { on: () => {}, setFeedURL: () => {}, checkForUpdates: () => {} }'
+ sed -e 's/.*require("electron-updater").*/'"$updater"'/' -e '/checkForUpdates,/d' -i 'electron.js'
}
build() {