fix: resolve Arch Linux startup issue by correctly identifying binary name in wrapper script

This commit is contained in:
2026-02-21 05:17:20 +01:00
parent a312e547e3
commit 538c310c87

View File

@@ -1,7 +1,7 @@
# Maintainer: Nils Pukropp <nils@narl.io>
pkgname=ultimate-ban-tracker
pkgver=1.3.3
pkgrel=2
pkgrel=3
pkgdesc="Professional Steam Account Manager & Ban Tracker"
arch=('x86_64')
url="https://narl.io"
@@ -12,7 +12,7 @@ source=("ultimate-ban-tracker-${pkgver}.tar.gz::https://git.narl.io/nvrl/ultimat
sha256sums=('SKIP')
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 frontend
@@ -38,10 +38,10 @@ package() {
cp -r release/linux-unpacked/* "${pkgdir}/usr/lib/${pkgname}/"
# 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
#!/bin/bash
exec /usr/lib/${pkgname}/${pkgname} "\$@"
exec /usr/lib/${pkgname}/${pkgname}-desktop "\$@"
EOF
chmod +x "${pkgdir}/usr/bin/${pkgname}"
@@ -55,7 +55,7 @@ Type=Application
Categories=Game;Utility;
Terminal=false
Comment=Professional Steam Account Manager & Ban Tracker
StartupWMClass=ultimate-ban-tracker
StartupWMClass=${pkgname}-desktop
EOF
# Install Icon