-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
30 lines (27 loc) · 886 Bytes
/
build.sh
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
#!/bin/bash
## This is an auto build script that can be used with the new RSPNVPK tool
## https://github.com/mrsteyk/RSPNVPK
## Add the VPK that your editing in a /dir folder
## eg. englishclient_frontend.bsp.pak000_dir.vpk
cp ./dir/englishclient_frontend.bsp.pak000_dir.vpk ./ & cp -R ./frontend ./englishclient_frontend.bsp.pak000_dir
wait
cp ./dir/englishclient_mp_common.bsp.pak000_dir.vpk ./ & cp -R ./common ./englishclient_mp_common.bsp.pak000_dir
wait
RSPNVPK englishclient_frontend.bsp.pak000_dir.vpk -s
wait
RSPNVPK englishclient_mp_common.bsp.pak000_dir.vpk -s
wait
rm -rf ./englishclient_frontend.bsp.pak000_dir
rm -rf ./englishclient_mp_common.bsp.pak000_dir
if [ "$1" ] && [ "$2" ]
then
zip "Streamer Mode $1 $2.zip" ./*.vpk
rm ./*.vpk
elif [ "$1" ]
then
zip "Streamer Mode $1.zip" ./*.vpk
rm ./*.vpk
else
zip "Streamer Mode Beta.zip" ./*.vpk
rm ./*.vpk
fi