forked from itb-community/ITB-ModLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.bat
More file actions
21 lines (17 loc) · 759 Bytes
/
Copy pathpackage.bat
File metadata and controls
21 lines (17 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
IF EXIST release RMDIR /q /s release
MKDIR release
REM Copy required files into release directory...
COPY /V lua5.1.dll release\lua5.1.dll
COPY /V lua5.1-original.dll release\lua5.1-original.dll
COPY /V opengl32.dll release\opengl32.dll
COPY /V SDL2.dll release\SDL2.dll
COPY /V SDL2-original.dll release\SDL2-original.dll
COPY /V uninstall.bat release\uninstall.bat
XCOPY mods release\mods /s /e /i
XCOPY scripts release\scripts /s /e /i
XCOPY resources release\resources /s /e /i
REM ...and pack it into a zip
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('release', 'ITB-ModLoader-#.#.#.zip'); }"
REM Delete release directory
RMDIR /q /s release