feat: unarchive

This commit is contained in:
TrèsAbhi committed 2025-10-23 15:01:18 -05:00
1 parent 029a781c50
commit b72d4058be
2 files changed
+35

No files matched your search

+31
View File
@@ -73,6 +73,11 @@ jobs:
remove-codeql: "true"
remove-docker-images: "true"
- if: github.event.inputs.archive_url != '' && endsWith(github.event.inputs.archive_url, '.wgpkg')
run: |
sudo apt update
sudo apt install -y p7zip-full
- uses: actions/checkout@v4
if: github.event.inputs.archive_url == ''
with:
@@ -115,6 +120,32 @@ jobs:
mkdir -p temp/game
mv temp/archive/app/* temp/game
- name: (WGPKG) Download client
if: github.event.inputs.archive_url != '' && endsWith(github.event.inputs.archive_url, '.wgpkg')
env:
ARCHIVE_URL: ${{ github.event.inputs.archive_url }}
run: |
mkdir -p temp/archives
i = 1
while :; do
part = $(printf "%03d" $i)
url = "${ARCHIVE_URL}.${part}"
echo "Downloading $url"
if wget -q -O "temp/archives/part.${part}" "$url"; then
((i++))
else
echo "Last part: $part"
rm -f "temp/archives/part.${part}"
break
fi
done
7z x temp/archives/part.001 -otemp/game
rm -rf temp/archives
- name: Archive game
uses: actions/upload-artifact@v4
with:
+4
View File
@@ -77,6 +77,7 @@
"DVPLCRC",
"dvpm",
"dxgi",
"easimon",
"echarts",
"Everytime",
"FASTNAME",
@@ -142,6 +143,7 @@
"Oopsy",
"opentest",
"OPTML",
"otemp",
"outdir",
"outfile",
"ownedtanks",
@@ -213,12 +215,14 @@
"Unregistering",
"unrotate",
"unwrapper",
"userns",
"vercel",
"vickers",
"vitepress",
"Vovko",
"wargaming",
"webp",
"wgpkg",
"whitespaces",
"WHSS",
"winrate",