mirror of https://github.com/ospab/ostp.git
ci(gha): fix missing dependencies in release archives
This commit is contained in:
parent
3dd9490ecc
commit
cd154d4418
|
|
@ -201,18 +201,20 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$dir = "target/${{ matrix.target }}/release"
|
$dir = "target/${{ matrix.target }}/release"
|
||||||
$files = @("$dir/ostp.exe")
|
$files = @("ostp.exe")
|
||||||
if (Test-Path "$dir/tun2socks.exe") { $files += "$dir/tun2socks.exe" }
|
if (Test-Path "$dir/tun2socks.exe") { $files += "tun2socks.exe" }
|
||||||
if (Test-Path "$dir/wintun.dll") { $files += "$dir/wintun.dll" }
|
if (Test-Path "$dir/wintun.dll") { $files += "wintun.dll" }
|
||||||
Compress-Archive -Path $files -DestinationPath "${{ matrix.release_name }}" -Force
|
Push-Location $dir
|
||||||
|
Compress-Archive -Path $files -DestinationPath "../../../${{ matrix.release_name }}" -Force
|
||||||
|
Pop-Location
|
||||||
|
|
||||||
- name: Package (Unix)
|
- name: Package (Unix)
|
||||||
if: ${{ matrix.os != 'windows-latest' }}
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
run: |
|
run: |
|
||||||
dir="target/${{ matrix.target }}/release"
|
dir="target/${{ matrix.target }}/release"
|
||||||
FILES="$dir/${{ matrix.artifact_name }}"
|
FILES="${{ matrix.artifact_name }}"
|
||||||
[ -f "$dir/tun2socks" ] && FILES="$FILES $dir/tun2socks"
|
[ -f "$dir/tun2socks" ] && FILES="$FILES tun2socks"
|
||||||
tar -czf "${{ matrix.release_name }}" -C "$dir" $(basename $FILES | tr '\n' ' ')
|
tar -czf "${{ matrix.release_name }}" -C "$dir" $FILES
|
||||||
|
|
||||||
# ── Upload ─────────────────────────────────────────────────────────────
|
# ── Upload ─────────────────────────────────────────────────────────────
|
||||||
- name: Upload to GitHub Release
|
- name: Upload to GitHub Release
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue