upgpkg: discord-electron 0.0.39-3: fix launcher
* Fix launcher error if config variable not set but rizin is installed * Fix typo
This commit is contained in:
parent
e87075530d
commit
fc4ccaec57
4 changed files with 8 additions and 8 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,7 +1,7 @@
|
|||
pkgbase = discord-electron
|
||||
pkgdesc = Discord using system provided electron (v27) for increased security and performance
|
||||
pkgver = 0.0.39
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = https://discord.com
|
||||
install = discord-electron.install
|
||||
arch = x86_64
|
||||
|
@ -21,6 +21,6 @@ pkgbase = discord-electron
|
|||
source = https://dl.discordapp.net/apps/linux/0.0.39/discord-0.0.39.tar.gz
|
||||
source = discord-launcher.sh
|
||||
sha512sums = 9f18aea5d82f5db4efa9db9babbc440b24e47dc80df18df5cc58d99d677f1c0863df21ed96d69896785f8fbe0dc0ff1f7317398b8f39606289da79f5a38074f1
|
||||
sha512sums = e68467468e9ebfe7aae873442998bda03212598a87d9af1b9ac976fdbafc81eb376e7770dccca6eb943d579f39717a0473fa4f0a46a0c3e436460688827a2dc7
|
||||
sha512sums = ceaeb357a84df0695fe65867f81d2fa35a65a6f47f47a29022e09fa15cc816b3e250f63eee1025388f51665e6bc39262de7cb7a137f25caf1d922bbacd217566
|
||||
|
||||
pkgname = discord-electron
|
||||
|
|
4
PKGBUILD
4
PKGBUILD
|
@ -14,7 +14,7 @@
|
|||
pkgname=discord-electron
|
||||
_pkgname=discord
|
||||
pkgver=0.0.39
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
_electronver=27
|
||||
_electronname="electron${_electronver}"
|
||||
pkgdesc="Discord using system provided electron (v${_electronver}) for increased security and performance"
|
||||
|
@ -36,7 +36,7 @@ optdepends=(
|
|||
source=("https://dl.discordapp.net/apps/linux/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
|
||||
'discord-launcher.sh')
|
||||
sha512sums=('9f18aea5d82f5db4efa9db9babbc440b24e47dc80df18df5cc58d99d677f1c0863df21ed96d69896785f8fbe0dc0ff1f7317398b8f39606289da79f5a38074f1'
|
||||
'e68467468e9ebfe7aae873442998bda03212598a87d9af1b9ac976fdbafc81eb376e7770dccca6eb943d579f39717a0473fa4f0a46a0c3e436460688827a2dc7')
|
||||
'ceaeb357a84df0695fe65867f81d2fa35a65a6f47f47a29022e09fa15cc816b3e250f63eee1025388f51665e6bc39262de7cb7a137f25caf1d922bbacd217566')
|
||||
|
||||
_krisp_b2sum='310e3d5ad2311ceace91d20004a677c1a1e49fa1cd5c0458ee5bdb31c01c49df68cac625e66dadcaddf90c67568cde22c2cec3c0b6bca8385225141a8d8d53c1'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
post_upgrade() {
|
||||
# return if old package version is greater than or equal to 0.0.39-1...
|
||||
# return if old package version is greater than or equal to 0.0.39-2...
|
||||
(( $(vercmp $2 '0.0.39-2') >= 0 )) && return
|
||||
|
||||
cat <<EOF
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
set -eo pipefail
|
||||
|
||||
declare -a flags
|
||||
|
||||
|
@ -19,9 +19,9 @@ if hash rizin &> /dev/null && [[ "${PATCH_KRISP}" == true ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ -w "${flags_file}" ]]; then
|
||||
if [[ -r "${flags_file}" ]]; then
|
||||
# Replacing because old flag does not work
|
||||
if grep -q '\--ignore-gpu-blacklist' "${flags_file}"; then
|
||||
if [[ -w "${flags_file}" ]] && grep -q '\--ignore-gpu-blacklist' "${flags_file}"; then
|
||||
sed -i "s|--ignore-gpu-blacklist|--ignore-gpu-blocklist|" "${flags_file}"
|
||||
fi
|
||||
mapfile -t < "${flags_file}"
|
||||
|
|
Loading…
Reference in a new issue