From 89fd886639d6789f45b3fd878ca83e91ee171404 Mon Sep 17 00:00:00 2001 From: ospab Date: Fri, 15 May 2026 17:10:01 +0300 Subject: [PATCH] fix: use universal .zip for all tun2socks downloads in release CI workflow --- .github/workflows/release.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eadc634..58750c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -175,20 +175,12 @@ jobs: shell: bash run: | cd target/${{ matrix.target }}/release - # Fetch using correct extension (Linux = .tar.gz, Darwin/FreeBSD = .zip) - if [[ "${{ matrix.tun2socks_arch }}" == *"linux"* ]]; then - URL="https://github.com/xjasonlyu/tun2socks/releases/download/v2.6.0/tun2socks-${{ matrix.tun2socks_arch }}.tar.gz" - curl -L "$URL" -o "tun2socks.tar.gz" - tar -xzf "tun2socks.tar.gz" - find . -maxdepth 2 -name "tun2socks*" ! -name "*.tar.gz" -type f -exec mv {} ./tun2socks \; - rm -f "tun2socks.tar.gz" - else - URL="https://github.com/xjasonlyu/tun2socks/releases/download/v2.6.0/tun2socks-${{ matrix.tun2socks_arch }}.zip" - curl -L "$URL" -o "tun2socks.zip" - unzip -o "tun2socks.zip" - find . -maxdepth 2 -name "tun2socks*" ! -name "*.zip" -type f -exec mv {} ./tun2socks \; - rm -f "tun2socks.zip" - fi + # All platforms in tun2socks v2.6.0 use .zip packaging + URL="https://github.com/xjasonlyu/tun2socks/releases/download/v2.6.0/tun2socks-${{ matrix.tun2socks_arch }}.zip" + curl -L "$URL" -o "tun2socks.zip" + unzip -o "tun2socks.zip" + find . -maxdepth 2 -name "tun2socks*" ! -name "*.zip" -type f -exec mv {} ./tun2socks \; + rm -f "tun2socks.zip" chmod +x tun2socks || true - name: Package release artifact (Windows)