forked from malahx/QuickMods
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdeploy.bat
More file actions
24 lines (18 loc) · 736 Bytes
/
deploy.bat
File metadata and controls
24 lines (18 loc) · 736 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
@echo off
rem H is the destination game folder
rem GAMEDIR is the name of the mod folder (usually the mod name)
rem GAMEDATA is the name of the local GameData
rem VERSIONFILE is the name of the version file, usually the same as GAMEDATA,
rem but not always
set H=%KSPDIR%
set GAMEDIR=QuickMods
set GAMEDATA="GameData"
set VERSIONFILE=%GAMEDIR%.version
copy /Y "%1%2" "%GAMEDATA%\%GAMEDIR%\%3\Plugins"
IF EXIST "%4Lang" xcopy /y /s /I "%4Lang" "%GAMEDATA%\%GAMEDIR%\%3\Lang"
rem copy /y %4%3.version %GAMEDATA%\%GAMEDIR%\%3
copy /y %3\%3.version %GAMEDATA%\%GAMEDIR%\%3
copy /y README.md %GAMEDATA%\%GAMEDIR%\%3
copy /y COPYING %GAMEDATA%\%GAMEDIR%\%3
xcopy /y /s /I %GAMEDATA%\%GAMEDIR% "%H%\GameData\%GAMEDIR%"
rem pause