diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index 2fa8de1f0..ae8e2d315 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -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: diff --git a/.vscode/settings.json b/.vscode/settings.json index 7eaa4a849..fd33836a2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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",