Compare commits
2 commits
c9d657f2be
...
debf69d1eb
| Author | SHA1 | Date | |
|---|---|---|---|
| debf69d1eb | |||
| 7c3a85f240 |
6 changed files with 18 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = discord-electron-openasar
|
||||
pkgdesc = Discord packaged with OpenAsar using system provided electron (v38) for increased security and performance
|
||||
pkgver = 0.0.112+846
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://discord.com
|
||||
install = discord-electron-openasar.install
|
||||
arch = x86_64
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ pkgname=discord-electron-openasar
|
|||
_pkgname=discord
|
||||
pkgver=0.0.112+846
|
||||
_pkgver=${pkgver%%+*}
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
_electronver=38
|
||||
_electronname="electron${_electronver}"
|
||||
pkgdesc="Discord packaged with OpenAsar using system provided electron (v${_electronver}) for increased security and performance"
|
||||
|
|
|
|||
|
|
@ -32,11 +32,16 @@ for line in "${MAPFILE[@]}"; do
|
|||
fi
|
||||
done
|
||||
|
||||
if [[ -e "${XDG_RUNTIME_DIR:-}/${WAYLAND_SOCKET:-}" || -e "${WAYLAND_DISPLAY:-}" || "${XDG_SESSION_TYPE:-}" == "wayland" ]]; then
|
||||
# work around electron's broken wayland detection
|
||||
# TODO: remove when Arch updates to an electron release that includes the fix
|
||||
# https://github.com/electron/electron/pull/48301
|
||||
flags+=("--ozone-platform=wayland")
|
||||
fi
|
||||
|
||||
unset flags_file krisp_bin
|
||||
|
||||
|
||||
exec /usr/lib/@ELECTRON@/electron \
|
||||
/usr/lib/@PKGNAME@/resources/app.asar \
|
||||
--ozone-platform-hint=auto \
|
||||
--gtk-version=3 \
|
||||
"${flags[@]}" "$@"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = discord-electron
|
||||
pkgdesc = Discord using system provided electron (v38) for increased security and performance
|
||||
pkgver = 0.0.112
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://discord.com
|
||||
install = discord-electron.install
|
||||
arch = x86_64
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
pkgname=discord-electron
|
||||
_pkgname=discord
|
||||
pkgver=0.0.112
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
_electronver=38
|
||||
_electronname="electron${_electronver}"
|
||||
pkgdesc="Discord using system provided electron (v${_electronver}) for increased security and performance"
|
||||
|
|
|
|||
|
|
@ -32,11 +32,16 @@ for line in "${MAPFILE[@]}"; do
|
|||
fi
|
||||
done
|
||||
|
||||
if [[ -e "${XDG_RUNTIME_DIR:-}/${WAYLAND_SOCKET:-}" || -e "${WAYLAND_DISPLAY:-}" || "${XDG_SESSION_TYPE:-}" == "wayland" ]]; then
|
||||
# work around electron's broken wayland detection
|
||||
# TODO: remove when Arch updates to an electron release that includes the fix
|
||||
# https://github.com/electron/electron/pull/48301
|
||||
flags+=("--ozone-platform=wayland")
|
||||
fi
|
||||
|
||||
unset flags_file krisp_bin
|
||||
|
||||
|
||||
exec /usr/lib/@ELECTRON@/electron \
|
||||
/usr/lib/@PKGNAME@/resources/app.asar \
|
||||
--ozone-platform-hint=auto \
|
||||
--gtk-version=3 \
|
||||
"${flags[@]}" "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue