remove dll link before patching on upgrade

This commit is contained in:
Kent Slaney 2024-09-10 13:28:19 -07:00
parent 270cdeca4e
commit b3194dc328
2 changed files with 5 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = bakkesmod-steam
pkgdesc = A mod aimed at making you better at Rocket League!
pkgver = 2.43
pkgrel = 5
pkgrel = 6
url = https://bakkesmod.com/
arch = x86_64
license = GPL
@ -13,7 +13,7 @@ pkgbase = bakkesmod-steam
makedepends = python
source = dll-2-0-43.zip::https://github.com/bakkesmodorg/BakkesModInjectorCpp/releases/download/2.0.43/bakkesmod.zip
source = src-2-0-43.zip::https://github.com/bakkesmodorg/BakkesModInjectorCpp/archive/refs/tags/2.0.43.zip
source = loopback-2-43-5.zip::https://github.com/kentslaney/bakkesmod-arch/archive/refs/tags/2.43-5-steam.zip
source = loopback-2-43-6.zip::https://github.com/kentslaney/bakkesmod-arch/archive/refs/tags/2.43-6-steam.zip
sha256sums = 3d39b07149872d891659330185ef9c4e02c580bfad67ed2df9979dbd72d4ae61
sha256sums = 2d9cb1534fbae77ba008b07be3291d30e98a872ebfb0f0b3e6bb0c638d98bef8
sha256sums = SKIP

View file

@ -1,7 +1,7 @@
# Maintainer: Kent Slaney <kent@slaney.org>
pkgname=bakkesmod-steam
pkgver=2.43
pkgrel=5
pkgrel=6
pkgdesc="A mod aimed at making you better at Rocket League!"
arch=('x86_64')
url="https://bakkesmod.com/"
@ -147,10 +147,11 @@ package() {
chmod a+x "$srcdir/runner.sh"
mkdir -p "$bm_pfx"
dll_path="$bm_pfx/bakkesmod/dll"
rm -f "$dll_path/bakkesmod.dll"
unzip -quo "dll-$rlesc.zip" -d "$bm_pfx/bakkesmod"
# by default, starts with bakkesmod.dll and outputs bakkesmod_promptless.dll
echo -n "shunted winuser calls for DLL patch: "
dll_path="$bm_pfx/bakkesmod/dll"
python "$srcdir/dll_patch.py" "$dll_path"
mv "$dll_path/bakkesmod.dll" "$dll_path/bakkesmod_official.dll"
ln -sf "$dll_path/bakkesmod_official.dll" "$dll_path/bakkesmod.dll"