-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·35 lines (25 loc) · 1.7 KB
/
update.sh
File metadata and controls
executable file
·35 lines (25 loc) · 1.7 KB
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
#!/bin/bash
set -euo pipefail
cd "${0%/*}"
. ../common.sh
echo "Processing SteamVR..."
ProcessDepot ".dll" ".exe" ".so"
ProcessVPK
ProcessToolAssetInfo
FixUCS2
# Prettify & Clean js/css
rm --recursive --force resources/webinterface/dashboard_prettier/ resources/webinterface/dashboard_cleaned/ || true
rsync --archive --include="*/" --include="*.js" --include="*.css" --exclude="*" --prune-empty-dirs resources/webinterface/dashboard/ resources/webinterface/dashboard_prettier/
find resources/webinterface/dashboard_prettier/ -type f -name "*.js" -exec bash -c 'node .github/tools/generate_clean_js.mjs "$1" "${1/dashboard_prettier/dashboard_cleaned}"' _ {} \;
npm run prettier -- --write resources/webinterface/dashboard_prettier/ resources/webinterface/dashboard_cleaned/ || true
rm --recursive --force drivers/lighthouse/resources/webinterface_prettier/ drivers/lighthouse/resources/webinterface_cleaned/ || true
rsync --archive --include="*/" --include="*.js" --include="*.css" --exclude="*" --prune-empty-dirs drivers/lighthouse/resources/webinterface drivers/lighthouse/resources/webinterface_prettier/
find drivers/lighthouse/resources/webinterface_prettier/ -type f -name "*.js" -exec bash -c 'node .github/tools/generate_clean_js.mjs "$1" "${1/webinterface_prettier/webinterface_cleaned}"' _ {} \;
npm run prettier -- --write drivers/lighthouse/resources/webinterface_prettier/ drivers/lighthouse/resources/webinterface_cleaned/ || true
# Extract protobufs
mkdir -p Protobufs ProtobufsWebui Structs
node .github/tools/dump_javascript_protobufs.mjs
# Extract svg icons
node .github/tools/dump_javascript_svg.mjs
CreateCommit "$(grep -o '[0-9\.]*' bin/version.txt)" "$(grep -o '[0-9\.]*' steam_buildid.txt)"
echo "Done."