forked from A3Wasteland/ArmA3_Wasteland.Altis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake_pbo.bat
32 lines (24 loc) · 1010 Bytes
/
make_pbo.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
31
32
:: make_pbo.bat
::
:: This script makes a PBO out of the current mission and copies it to a given
:: directory based on a match on your Windows username
::
::@ECHO OFF
:: Set your ArmA3 profile name etc. below
IF "%username%" == "Nick Ludlam" (
SET "LOCAL_ARMA_PROFILE=[KoS]Bewilderbeest"
:: My local standalone server dir
SET "PBO_DESTINATION_DIR=C:\ArmaEditing\ArmA3\A3Master\MPMissions\"
)
:: General definitions
SET "LOCAL_MISSION_NAME=ArmA3_Wasteland.Stratis"
SET "SOURCE_DIR=%USERPROFILE%\Documents\GitHub\ArmA3_Wasteland.Stratis"
SET "PBO_TOOL=C:\Program Files (x86)\Bohemia Interactive\Tools\BinPBO Personal Edition\BinPBO.exe"
:: Business end
ECHO Packaging into PBO...
mkdir "%TEMP%\%LOCAL_MISSION_NAME%"
xcopy /q /s /y "%SOURCE_DIR%\*" "%TEMP%%LOCAL_MISSION_NAME%"
echo Mission assembled to %TEMP%%LOCAL_MISSION_NAME%
"%PBO_TOOL%" "%TEMP%\%LOCAL_MISSION_NAME%" %PBO_DESTINATION_DIR%
echo Created PBO %PBO_DESTINATION_DIR%%LOCAL_MISSION_NAME%.pbo
rmdir "%TEMP%\%LOCAL_MISSION_NAME%" /s /q