From cd154d44185e7f707d4488de01d7cdcfd9045dfa Mon Sep 17 00:00:00 2001 From: ospab Date: Thu, 21 May 2026 22:29:02 +0300 Subject: [PATCH] ci(gha): fix missing dependencies in release archives --- .github/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1af830b..a41fe92 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -201,18 +201,20 @@ jobs: shell: pwsh run: | $dir = "target/${{ matrix.target }}/release" - $files = @("$dir/ostp.exe") - if (Test-Path "$dir/tun2socks.exe") { $files += "$dir/tun2socks.exe" } - if (Test-Path "$dir/wintun.dll") { $files += "$dir/wintun.dll" } - Compress-Archive -Path $files -DestinationPath "${{ matrix.release_name }}" -Force + $files = @("ostp.exe") + if (Test-Path "$dir/tun2socks.exe") { $files += "tun2socks.exe" } + if (Test-Path "$dir/wintun.dll") { $files += "wintun.dll" } + Push-Location $dir + Compress-Archive -Path $files -DestinationPath "../../../${{ matrix.release_name }}" -Force + Pop-Location - name: Package (Unix) if: ${{ matrix.os != 'windows-latest' }} run: | dir="target/${{ matrix.target }}/release" - FILES="$dir/${{ matrix.artifact_name }}" - [ -f "$dir/tun2socks" ] && FILES="$FILES $dir/tun2socks" - tar -czf "${{ matrix.release_name }}" -C "$dir" $(basename $FILES | tr '\n' ' ') + FILES="${{ matrix.artifact_name }}" + [ -f "$dir/tun2socks" ] && FILES="$FILES tun2socks" + tar -czf "${{ matrix.release_name }}" -C "$dir" $FILES # ── Upload ───────────────────────────────────────────────────────────── - name: Upload to GitHub Release