-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
50 lines (45 loc) · 1.75 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
## This is an auto build script that can be used with the new RSPNVPK tool
## https://github.com/taskinoz/RSPNVPK
## Add the VPK that your editing in a /dir folder
## eg. englishclient_frontend.bsp.pak000_dir.vpk
if [ "$1" = "prod" ]
then
## Run on Prod
cp -R ./src ./englishclient_frontend.bsp.pak000_dir
wait
./RSPNVPK ./englishclient_frontend.bsp.pak000_dir.vpk -s
wait
rm -rf ./englishclient_frontend.bsp.pak000_dir
mkdir "Enhanced Menu"
mv ./*.vpk ./"Enhanced Menu"/
zip -r "Enhanced Menu Compiled VPK.zip" ./"Enhanced Menu"/
rm -rf ./"Enhanced Menu"/
else
## Remove previous builds
rm -rf Enhanced.Menu.Mod.Icepick && rm -rf Enhanced.Menu.Mod.Northstar
rm ./*.vpk
## Run on Dev
cp ./dir/englishclient_frontend.bsp.pak000_dir.vpk ./ & cp -R ./src ./englishclient_frontend.bsp.pak000_dir
wait
RSPNVPK englishclient_frontend.bsp.pak000_dir.vpk -s
wait
rm -rf ./englishclient_frontend.bsp.pak000_dir
# mv ./*.vpk "C:\Program Files (x86)\Origin Games\Titanfall2\vpk"
fi
## Northstar and Icepick Changes
mkdir ./Enhanced.Menu.Mod.Icepick
cp -R ./src/* ./Enhanced.Menu.Mod.Icepick && cp -R ./Icepick/* ./Enhanced.Menu.Mod.Icepick
rm ./Enhanced.Menu.Mod.Icepick/scripts/vscripts/scripts.rson
## Temp fix for Icepick version
rm ./Enhanced.Menu.Mod.Icepick/resource/r1_tchinese.txt
mkdir ./Enhanced.Menu.Mod.Northstar
cp -R ./src/ ./Enhanced.Menu.Mod.Northstar/mod && cp -R ./Northstar/* ./Enhanced.Menu.Mod.Northstar
rm ./Enhanced.Menu.Mod.Northstar/mod/scripts/vscripts/scripts.rson
if [ "$1" = "prod" ]
then
zip -r "Enhanced.Menu.Mod.Icepick.zip" ./"Enhanced.Menu.Mod.Icepick"/
rm -rf ./"Enhanced.Menu.Mod.Icepick"/
zip -r "Enhanced.Menu.Mod.Northstar.zip" ./"Enhanced.Menu.Mod.Northstar"/
rm -rf ./"Enhanced.Menu.Mod.Northstar"/
fi