-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript Build.bat
More file actions
36 lines (35 loc) · 1016 Bytes
/
Script Build.bat
File metadata and controls
36 lines (35 loc) · 1016 Bytes
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
31
32
33
34
35
36
@echo off
call BuildVariables.cmd
if not exist %PACKEDSCRIPTS%\content\scripts mkdir %PACKEDSCRIPTS%\content\scripts
echo Bundling scripts.........
set folder="%PACKEDSCRIPTS%\content\scripts"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
XCOPY "%SCRIPTS%" "%PACKEDSCRIPTS%" /S/Y
echo.
echo.
echo %NAME% generated successfully.
echo.
:choice
set /P c="Install %NAME% scripts to Witcher 3? (Y/N)"
if /I "%c%" EQU "Y" goto :movespot
if /I "%c%" EQU "N" goto :exitspot
goto :choice
:movespot
if not exist %GAMEPATH%\Mods\%NAME% mkdir %GAMEPATH%\Mods\%NAME%
set folder="%GAMEPATH%\Mods\%NAME%\content\scripts"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
XCOPY "%SCRIPTS%" "%GAMEPATH%\Mods\%NAME%" /S/Y
echo.
echo.
echo %NAME% scripts successfully installed to Witcher 3.
echo Remember to use Script Merger if you have other mods installed.
pause
exit
:exitspot
echo.
echo.
echo %NAME% scripts generated successfully.
pause
exit