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-codeql: "true"
remove-docker-images: "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 - uses: actions/checkout@v4
if: github.event.inputs.archive_url == '' if: github.event.inputs.archive_url == ''
with: with:
@@ -115,6 +120,32 @@ jobs:
mkdir -p temp/game mkdir -p temp/game
mv temp/archive/app/* 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 - name: Archive game
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
+4
View File
@@ -77,6 +77,7 @@
"DVPLCRC", "DVPLCRC",
"dvpm", "dvpm",
"dxgi", "dxgi",
"easimon",
"echarts", "echarts",
"Everytime", "Everytime",
"FASTNAME", "FASTNAME",
@@ -142,6 +143,7 @@
"Oopsy", "Oopsy",
"opentest", "opentest",
"OPTML", "OPTML",
"otemp",
"outdir", "outdir",
"outfile", "outfile",
"ownedtanks", "ownedtanks",
@@ -213,12 +215,14 @@
"Unregistering", "Unregistering",
"unrotate", "unrotate",
"unwrapper", "unwrapper",
"userns",
"vercel", "vercel",
"vickers", "vickers",
"vitepress", "vitepress",
"Vovko", "Vovko",
"wargaming", "wargaming",
"webp", "webp",
"wgpkg",
"whitespaces", "whitespaces",
"WHSS", "WHSS",
"winrate", "winrate",