From 69fc0d1d939de45d48a6e1208a07dcac91f58f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Sun, 11 Feb 2024 06:57:44 +0100 Subject: [PATCH] upgpkg: discord-electron-openasar 0.0.42+827-3: disable autoupdate * Set autoupdate to false by default --- discord-electron-openasar/.SRCINFO | 2 +- discord-electron-openasar/PKGBUILD | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/discord-electron-openasar/.SRCINFO b/discord-electron-openasar/.SRCINFO index a74f00f..cf7bddd 100644 --- a/discord-electron-openasar/.SRCINFO +++ b/discord-electron-openasar/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = discord-electron-openasar pkgdesc = Discord packaged with OpenAsar using system provided electron (v28) for increased security and performance pkgver = 0.0.42+827 - pkgrel = 2 + pkgrel = 3 url = https://discord.com install = discord-electron-openasar.install arch = x86_64 diff --git a/discord-electron-openasar/PKGBUILD b/discord-electron-openasar/PKGBUILD index cb10deb..a4346cb 100644 --- a/discord-electron-openasar/PKGBUILD +++ b/discord-electron-openasar/PKGBUILD @@ -8,7 +8,7 @@ pkgname=discord-electron-openasar _pkgname=discord pkgver=0.0.42+827 _pkgver=${pkgver%%+*} -pkgrel=2 +pkgrel=3 _electronver=28 _electronname="electron${_electronver}" pkgdesc="Discord packaged with OpenAsar using system provided electron (v${_electronver}) for increased security and performance" @@ -63,6 +63,7 @@ build() { # pack openasar sed -i -e "s|nightly|nightly-$(git rev-parse HEAD | cut -c 1-7)|" src/index.js + sed -i -e "/config.setup = true/a\ config.autoupdate = false;" src/config/index.js sed -i -e "s|process.resourcesPath|'/usr/lib/${_pkgname}'|" src/utils/buildInfo.js sed -i -e "s|^Exec=\${exec}$|Exec=/usr/bin/${_pkgname}|" \ -e "s|^Name=\${basename(exec)}$|Name=${_pkgname^}|" src/autoStart.js