mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
de10ab749c
script both CUP install scripts now auto update .bikey
51 lines
1.4 KiB
Batchfile
51 lines
1.4 KiB
Batchfile
@ECHO OFF
|
|
SET STEAMUN=admin@youremail.net
|
|
SET STEAMPW=chamgeme
|
|
SET ARMASVRPATH=C:\Arma3Server
|
|
SET ARMAAPPID=107410
|
|
|
|
:: Use -mod line with quotes to support spaces in folder
|
|
:: Example: -mod="@Epoch;@CUP Terrains - Core;@CUP Terrains - Maps;"
|
|
|
|
:: Install CUP CORE
|
|
|
|
SET MODFOLDER=@CUP Terrains - Core
|
|
SET ARMAWORKSHOPID=583496184
|
|
|
|
:: remove old folder
|
|
rd /s/q "%ARMASVRPATH%\%MODFOLDER%"
|
|
|
|
:: update workshop mod
|
|
START "" /WAIT steamcmd.exe +login %STEAMUN% %STEAMPW% +workshop_download_item %ARMAAPPID% %ARMAWORKSHOPID% +quit
|
|
|
|
:: copy files back to server
|
|
xcopy /s/e/y/q/i "steamapps\workshop\content\%ARMAAPPID%\%ARMAWORKSHOPID%" "%ARMASVRPATH%\%MODFOLDER%"
|
|
|
|
:: Remove old bikey
|
|
del "%ARMASVRPATH%\Keys\cup_terrains_core-*.bikey"
|
|
|
|
:: add new bikey
|
|
xcopy /s/e/y/q/i "%ARMASVRPATH%\%MODFOLDER%\Keys" "%ARMASVRPATH%\Keys"
|
|
|
|
|
|
|
|
:: Install CUP MAPS
|
|
|
|
SET MODFOLDER=@CUP Terrains - Maps
|
|
SET ARMAWORKSHOPID=583544987
|
|
|
|
:: remove old folder
|
|
rd /s/q "%ARMASVRPATH%\%MODFOLDER%"
|
|
|
|
:: update workshop mod
|
|
START "" /WAIT steamcmd.exe +login %STEAMUN% %STEAMPW% +workshop_download_item %ARMAAPPID% %ARMAWORKSHOPID% +quit
|
|
|
|
:: copy files back to server
|
|
xcopy /s/e/y/q/i "steamapps\workshop\content\%ARMAAPPID%\%ARMAWORKSHOPID%" "%ARMASVRPATH%\%MODFOLDER%"
|
|
|
|
:: Remove old bikey
|
|
del "%ARMASVRPATH%\Keys\cup_terrains_maps-*.bikey"
|
|
|
|
:: add new bikey
|
|
xcopy /s/e/y/q/i "%ARMASVRPATH%\%MODFOLDER%\Keys" "%ARMASVRPATH%\Keys"
|