forked from Exit-9B/DynamicArmorVariants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.cmd
22 lines (17 loc) · 1005 Bytes
/
Build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
cmake --preset vs2022-windows --check-stamp-file "build/CMakeFiles/generate.stamp" || goto :error
cmake --build build --config Release || goto :error
cmake --install build --component "Fomod" --prefix "package" || goto :error
cmake --install build --component "Data" --prefix "package/Data" || goto :error
cmake --install build --component "UIExtensions_Menu" --prefix "package/UIExtensions_Menu" || goto :error
cmake --install build --component "HiddenEquipment" --prefix "package/HiddenEquipment" || goto :error
cmake --install build --component "SKSEPlugin" --prefix "package/SkyrimSE" || goto :error
cmake --preset vs2022-windows-vr --check-stamp-file "buildVR/CMakeFiles/generate.stamp" || goto :error
cmake --build buildVR --target "DynamicArmorVariants" --config Release || goto :error
cmake --install buildVR --component "SKSEPlugin" --prefix "package/SkyrimVR" || goto :error
pushd package
7z.exe a -r -t7Z "..\DynamicArmorVariants.7z" *
popd
goto :EOF
:error
exit /b %errorlevel%