3232# @param $1 - File extension to process (e.g. .dll, .so, .dylib, .exe)
3333ProcessDepot ()
3434{
35- echo " > Processing binaries"
35+ echo " ::group:: Processing binaries"
3636
3737# rm -r "Protobufs"
3838 mkdir -p " Protobufs"
@@ -81,12 +81,14 @@ ProcessDepot ()
8181 # Extract readable strings from the binary, sort and deduplicate them
8282 " $DUMP_STRINGS_PATH " -binary " $file " -target " $file_type " | sort --unique > " $strings_file "
8383 done < <( find . -type f -name " *$1 " -print0)
84+
85+ echo " ::endgroup::"
8486}
8587
8688# ProcessVPK - Lists contents of VPK directory files and writes them to corresponding .txt files.
8789ProcessVPK ()
8890{
89- echo " > Processing VPKs"
91+ echo " ::group:: Processing VPKs"
9092
9193 # Find all VPK directory files and dump their file listings to .txt
9294 while IFS= read -r -d ' ' file
@@ -96,6 +98,8 @@ ProcessVPK ()
9698 # Write the VPK's file list to a .txt file with the same name
9799 " $VRF_PATH " --input " $file " --vpk_list > " $( echo " $file " | sed -e ' s/\.vpk$/\.txt/g' ) "
98100 done < <( find . -type f -name " *_dir.vpk" -print0)
101+
102+ echo " ::endgroup::"
99103}
100104
101105# DeduplicateStringsFrom - Removes duplicate string lines from extracted strings files
@@ -107,7 +111,7 @@ DeduplicateStringsFrom ()
107111 suffix=" $1 "
108112 shift
109113
110- echo " > Deduplicating strings ($suffix )"
114+ echo " ::group:: Deduplicating strings ($suffix )"
111115
112116 # Resolve all dedupe reference files to absolute paths, warn if missing
113117 dedupe_files=()
@@ -153,12 +157,14 @@ DeduplicateStringsFrom ()
153157 grep " ${grep_args[@]} " " $target_file " > " $target_file .tmp" || true
154158 mv " $target_file .tmp" " $target_file "
155159 done < <( find . -type f -name " *$suffix " -print0)
160+
161+ echo " ::endgroup::"
156162}
157163
158164# ProcessToolAssetInfo - Converts binary tools asset info files (*asset_info.bin) to readable .txt format.
159165ProcessToolAssetInfo ()
160166{
161- echo " > Processing tools asset info"
167+ echo " ::group:: Processing tools asset info"
162168
163169 # Find all tools asset info binaries and convert them to text
164170 while IFS= read -r -d ' ' file
@@ -168,15 +174,19 @@ ProcessToolAssetInfo ()
168174 # Dump asset info in short format, replacing .bin extension with .txt
169175 " $VRF_PATH " --input " $file " --output " $( echo " $file " | sed -e ' s/\.bin$/\.txt/g' ) " --tools_asset_info_short || echo " S2V failed to dump tools asset info"
170176 done < <( find . -type f -name " *asset_info.bin" -print0)
177+
178+ echo " ::endgroup::"
171179}
172180
173181# FixUCS2 - Converts UCS-2 encoded .txt files to UTF-8 using the FixEncoding tool.
174182FixUCS2 ()
175183{
176- echo " > Fixing UCS-2 "
184+ echo " ::group:: Fixing encodings "
177185
178186 # Run FixEncoding on all .txt files in parallel (up to 3 at a time)
179187 find . -type f -name " *.txt" -print0 | xargs --null --max-lines=1 --max-procs=3 " $FIX_ENCODING_PATH "
188+
189+ echo " ::endgroup::"
180190}
181191
182192# CreateCommit - Stages all changes, creates a git commit with a summary message, and pushes.
@@ -190,6 +200,8 @@ CreateCommit ()
190200 return
191201 fi
192202
203+ echo " ::group::Creating commit"
204+
193205 # Stage all changes including untracked files
194206 git add --all
195207
@@ -205,4 +217,6 @@ CreateCommit ()
205217 # Commit (allow failure if there are no changes) and push
206218 git commit --message " $message " || true
207219 git push
220+
221+ echo " ::endgroup::"
208222}
0 commit comments