Epoch/Tools/Install/InstallEpochExperimentalClient.cmd

17 lines
681 B
Batchfile

@ECHO OFF
SET STEAMUN=admin@youremail.net
SET STEAMPW=changeme
SET ARMASVRPATH=C:\Arma3Server
SET ARMAAPPID=107410
SET MODFOLDER=@Epoch
:: Workshop IDs: EpochExperimental = 455221958 Normal Epoch = 421839251
SET ARMAWORKSHOPID=455221958
:: remove old folder
rd /s/q "%ARMASVRPATH%\%MODFOLDER%"
:: update workshop mod
START "" /WAIT steamcmd.exe +login %STEAMUN% %STEAMPW% +workshop_download_item %ARMAAPPID% %ARMAWORKSHOPID% validate +quit
:: copy files back to server
xcopy /s/e/y/q/i "steamapps\workshop\content\%ARMAAPPID%\%ARMAWORKSHOPID%" "%ARMASVRPATH%\%MODFOLDER%"
del "%ARMASVRPATH%\Keys\epoch*.bikey"
xcopy /s/e/y/q/i "%ARMASVRPATH%\%MODFOLDER%\Keys" "%ARMASVRPATH%\Keys"