forked from NeKzor/Portal2SpeedrunMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCOPY.bat
30 lines (24 loc) · 793 Bytes
/
COPY.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@ECHO OFF
SET "name=Portal 2 Speedrun Mod"
SET "dest=C:\Program Files (x86)\Steam\steamapps\sourcemods\%name%"
SET "vpk=D:\Gry\Steem\steamapps\common\Portal 2\bin\vpk.exe"
ECHO.
ECHO ====== Attempting to create directory at %dest%... ======
MKDIR "%dest%"
ECHO.
ECHO ====== Copying raw files... ======
xcopy /E /V /Y /I "cfg" "%dest%/cfg"
xcopy /E /V /Y /I "maps" "%dest%\maps"
xcopy /E /V /Y /I "resource" "%dest%\resource"
xcopy /E /V /Y /I "scripts" "%dest%\scripts"
xcopy /E /V /Y /I "media" "%dest%\media"
copy /Y "gameinfo.txt" "%dest%\gameinfo.txt"
ECHO.
ECHO ====== Packing pak01_dir... ======
"%vpk%" pak01_dir
copy /Y "pak01_dir.vpk" "%dest%\pak01_dir.vpk"
DEL pak01_dir.vpk
ECHO.
ECHO ====== Copying smsm.dll... ======
copy /Y "smsm\bin\smsm.dll" "%dest%\smsm.dll"
ECHO Done.