-
Notifications
You must be signed in to change notification settings - Fork 104
/
update.sh
executable file
·40 lines (29 loc) · 1 KB
/
update.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
#!/bin/bash
cd "${0%/*}"
. ../common.sh
echo "Processing CS2..."
../tools/dump_source2.sh csgo csgo
ProcessDepot ".so"
ProcessDepot ".dll"
DeduplicateStringsFrom ".so" "game/bin/linuxsteamrt64/libengine2_strings.txt" "game/bin/linuxsteamrt64/libtier0_strings.txt" "DumpSource2/.stringsignore"
ProcessVPK
while IFS= read -r -d '' file
do
echo " > $file"
# When updating vpk_extensions, also update "vpk:..." in GameTracking/files.json
"$VRF_PATH" \
--input "$file" \
--output "$(echo "$file" | sed -e 's/\.vpk$/\//g')" \
--vpk_cache \
--vpk_decompile \
--vpk_extensions "txt,lua,kv3,db,gameevents,vcss_c,vjs_c,vts_c,vxml_c,vsndevts_c,vsndstck_c,vpulse_c,vdata_c" \
|| echo "Decompiler failed"
done < <(find . -type f -name "pak01_dir.vpk" -print0)
while IFS= read -r -d '' file
do
sed -i '/\/\/# sourceMappingURL=/d' "$file"
done < <(find . -type f -name "*.js" -print0)
ProcessToolAssetInfo
FixUCS2
CreateCommit "$(grep "ClientVersion=" game/csgo/steam.inf | grep -o '[0-9\.]*')" "$1"
echo "Done"