From 3b6370e01dff594d893b0fe68be871735ade74a4 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Mon, 5 Feb 2024 19:55:23 -0800 Subject: [PATCH] Create .iwd in build.bat Copy .ff, .iwd, and .json to separate folder in build.bat Requires Powershell Core for Compress-Archive to work correctly --- build.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.bat b/build.bat index 4de4475c..ce15a28a 100644 --- a/build.bat +++ b/build.bat @@ -130,4 +130,8 @@ if %ERRORLEVEL% NEQ 0 pause if %ERRORLEVEL% NEQ 0 pause -del %cd%\zone_source\*.ff \ No newline at end of file +del %cd%\zone_source\*.ff + +pwsh -Command "Compress-Archive -Force -Path attachmentunique,images,maps,scripts,ui,ui_mp,weapons -DestinationPath mod.iwd" + +for %%f in (ff,iwd,json) do xcopy /i /y *.%%f ..\zm_reimagined \ No newline at end of file