Files
L4D2Fix/justfile
T
Kuriko Moe c3c2250941 feat: add target option
allow user to set the target exe in ini file
    However, the patch modifies the bin/shaderapidx9[vk].dll, make sure
    the game is source based and the file is in right place.
2025-04-10 17:38:02 +08:00

46 lines
1.2 KiB
Makefile

TEMPLATE_VER := "v1.0.0"
TARGET := "D:\\Games\\GamePlatforms\\SteamLibrary\\steamapps\\common\\Left 4 Dead 2"
# use `just preset=x64-release config build` to override this
preset := "x86-release-msvc"
target := "main"
[linux]
init:
bash ./scripts/init_linux.sh
clean:
rm -rf build
build:
xmake f -m release
xmake
copy: build
cp build/windows/x86/release/kpatch.dll "{{TARGET}}"
cp build/windows/x86/release/left4dead2_fix.exe "{{TARGET}}"
cp kpatch.ini "{{TARGET}}"
copyrel:
xmake f -m release
xmake
cp build/windows/x86/release/kpatch.dll "{{TARGET}}"
cp build/windows/x86/release/left4dead2_fix.exe "{{TARGET}}"
release:
rm release -rf
mkdir -p release
# release
xmake f -m release
xmake
cp build/windows/x86/release/kpatch.dll release/
cp build/windows/x86/release/left4dead2_fix.exe release/
cp assets/请读我.txt release/
cp "assets/left4dead2_fix - Shortcut.lnk" release/
cp third/4gb_patch.exe release/
cp kpatch.ini release/
@run:
./build/{{preset}}/bin/{{target}}