wicked-waifus-win-patch/build.bat

37 lines
1 KiB
Batchfile
Raw Permalink Normal View History

2024-10-01 17:55:18 +00:00
GOTO:MAIN
:cargoReleaseBuild
SETLOCAL ENABLEDELAYEDEXPANSION
cargo clean
cargo build --release --no-default-features -F %~1
2024-11-02 00:40:31 +00:00
set features=%~1
set cleaned_features=%features:,=-%
COPY target\release\wicked_waifus_win.dll build\%~2\wicked-waifus-win-%cleaned_features%.dll
2024-10-01 18:04:06 +00:00
cargo clean
2024-10-01 17:55:18 +00:00
ENDLOCAL
EXIT /B 0
2024-11-02 00:40:31 +00:00
:buildAllVariants
SETLOCAL ENABLEDELAYEDEXPANSION
: Build for cn_beta_1_4_0
call:cargoReleaseBuild "cn_beta_1_4_0,%~1" %~1
: Build for cn_beta_1_3_0
call:cargoReleaseBuild "cn_beta_1_3_0,%~1" %~1
: Build for cn_live_1_3_0
call:cargoReleaseBuild "cn_live_1_3_0,%~1" %~1
: Build for os_live_1_3_0
call:cargoReleaseBuild "os_live_1_3_0,%~1" %~1
ENDLOCAL
EXIT /B 0
2024-10-01 17:55:18 +00:00
:MAIN
if exist "build" rd /q /s "build"
mkdir build
2024-11-02 00:40:31 +00:00
mkdir build\regular
mkdir build\only-sig-bypass
2024-10-01 18:04:06 +00:00
cargo clean
2024-10-01 17:55:18 +00:00
2024-11-02 00:40:31 +00:00
call:buildAllVariants regular
call:buildAllVariants only-sig-bypass
2024-10-01 17:55:18 +00:00
2024-11-01 19:40:52 +00:00
tar -acvf wicked-waifus-win-patch-win64.zip -C build .