fix: resolve rollup dependency mismatch by simplifying build scripts and hardening clean-install logic

This commit is contained in:
2026-02-21 16:03:40 +01:00
parent 77078eb727
commit ffce336081
3 changed files with 173 additions and 205 deletions

View File

@@ -1,7 +1,7 @@
# Maintainer: Nils Pukropp <nils@narl.io>
pkgname=ultimate-ban-tracker
pkgver=1.3.3
pkgrel=5
pkgrel=6
pkgdesc="Professional Steam Account Manager & Ban Tracker"
arch=('x86_64')
url="https://narl.io"
@@ -14,18 +14,21 @@ sha256sums=('SKIP')
build() {
cd "${srcdir}/ultimate-ban-tracker"
# Clean previous build state if any
rm -rf frontend/node_modules
# Clean state
rm -rf frontend/node_modules frontend/package-lock.json
cd frontend
# Fresh install with all dependencies
npm install
# Force fresh install and handle electron's postinstall quirks
npm install --omit=optional
# Ensure icon is converted (IMv7 compatible)
if command -v magick &> /dev/null; then
magick -background none -size 512x512 assets-build/icon.svg assets-build/icon.png
else
convert -background none -size 512x512 assets-build/icon.svg assets-build/icon.png
fi
# Ensure icon is converted
convert -background none -size 512x512 assets-build/icon.svg assets-build/icon.png
# Build production
# Build production binary for linux specifically
npm run electron:build -- --linux
}