fix: resolve Arch Linux startup issue by correctly identifying binary name in wrapper script
This commit is contained in:
10
PKGBUILD
10
PKGBUILD
@@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Nils Pukropp <nils@narl.io>
|
# Maintainer: Nils Pukropp <nils@narl.io>
|
||||||
pkgname=ultimate-ban-tracker
|
pkgname=ultimate-ban-tracker
|
||||||
pkgver=1.3.3
|
pkgver=1.3.3
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Professional Steam Account Manager & Ban Tracker"
|
pkgdesc="Professional Steam Account Manager & Ban Tracker"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://narl.io"
|
url="https://narl.io"
|
||||||
@@ -12,7 +12,7 @@ source=("ultimate-ban-tracker-${pkgver}.tar.gz::https://git.narl.io/nvrl/ultimat
|
|||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
# The Gitea archive usually extracts to a folder named after the repo
|
# The Gitea archive extracts to a folder named 'ultimate-ban-tracker'
|
||||||
cd "${srcdir}/ultimate-ban-tracker"
|
cd "${srcdir}/ultimate-ban-tracker"
|
||||||
|
|
||||||
cd frontend
|
cd frontend
|
||||||
@@ -38,10 +38,10 @@ package() {
|
|||||||
cp -r release/linux-unpacked/* "${pkgdir}/usr/lib/${pkgname}/"
|
cp -r release/linux-unpacked/* "${pkgdir}/usr/lib/${pkgname}/"
|
||||||
|
|
||||||
# Create a wrapper script instead of a direct symlink
|
# Create a wrapper script instead of a direct symlink
|
||||||
# This ensures Electron finds its relative resources correctly
|
# The actual binary produced by electron-builder is 'ultimate-ban-tracker-desktop'
|
||||||
cat > "${pkgdir}/usr/bin/${pkgname}" <<EOF
|
cat > "${pkgdir}/usr/bin/${pkgname}" <<EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec /usr/lib/${pkgname}/${pkgname} "\$@"
|
exec /usr/lib/${pkgname}/${pkgname}-desktop "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x "${pkgdir}/usr/bin/${pkgname}"
|
chmod +x "${pkgdir}/usr/bin/${pkgname}"
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ Type=Application
|
|||||||
Categories=Game;Utility;
|
Categories=Game;Utility;
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Comment=Professional Steam Account Manager & Ban Tracker
|
Comment=Professional Steam Account Manager & Ban Tracker
|
||||||
StartupWMClass=ultimate-ban-tracker
|
StartupWMClass=${pkgname}-desktop
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Install Icon
|
# Install Icon
|
||||||
|
|||||||
Reference in New Issue
Block a user