@@ -46,10 +46,10 @@ jobs:
4646 fail-fast : false
4747 matrix :
4848 platform :
49- - { name: Windows, os: windows-latest }
50- - { name: macOS (Intel), os: macos-latest, target: x86_64-apple-darwin, args: '--target x86_64-apple-darwin' }
51- - { name: macOS (Apple Silicon), os: macos-latest, target: aarch64-apple-darwin, args: '--target aarch64-apple-darwin' }
52- - { name: Linux, os: ubuntu-24.04 }
49+ - { name: Windows, os: windows-latest, pattern: 'free-proxy_gui_windows_x86_64_[version][ext]' }
50+ - { name: macOS (Intel), os: macos-latest, target: x86_64-apple-darwin, args: '--target x86_64-apple-darwin', pattern: 'free-proxy_gui_macos_x86_64_[version][ext]' }
51+ - { name: macOS (Apple Silicon), os: macos-latest, target: aarch64-apple-darwin, args: '--target aarch64-apple-darwin', pattern: 'free-proxy_gui_macos_aarch64_[version][ext]' }
52+ - { name: Linux, os: ubuntu-24.04, pattern: 'free-proxy_gui_linux_x86_64_[version][ext]' }
5353 runs-on : ${{ matrix.platform.os }}
5454 steps :
5555 - uses : actions/checkout@v6
9393 projectPath : ' ./client_tauri'
9494 tagName : ${{ github.ref_name }}
9595 releaseDraft : true
96+ releaseAssetNamePattern : ${{ matrix.platform.pattern }}
9697 args : ${{ matrix.platform.args }}
9798
9899 # ========== Job 3: Rust CLI(与 Tauri 并行上传) ==========
@@ -103,9 +104,9 @@ jobs:
103104 fail-fast : false
104105 matrix :
105106 platform :
106- - { name: Windows, os: windows-latest, ext: '.exe' }
107- - { name: macOS, os: macos-latest }
108- - { name: Linux, os: ubuntu-24.04 }
107+ - { name: Windows, os: windows-latest, label: windows, arch: x86_64, ext: '.exe' }
108+ - { name: macOS, os: macos-latest, label: macos, arch: aarch64 }
109+ - { name: Linux, os: ubuntu-24.04, label: linux, arch: x86_64 }
109110 runs-on : ${{ matrix.platform.os }}
110111 steps :
111112 - uses : actions/checkout@v6
@@ -126,8 +127,8 @@ jobs:
126127 run : |
127128 VERSION=${GITHUB_REF_NAME#v}
128129 cp "client_cli/target/release/client_cli${{ matrix.platform.ext }}" \
129- "client-cli-${VERSION}- ${{ matrix.platform.name } }${{ matrix.platform.ext }}"
130- echo "ASSET_NAME=client-cli-${VERSION}- ${{ matrix.platform.name } }${{ matrix.platform.ext }}" >> "$GITHUB_ENV"
130+ "free-proxy_cli_${{ matrix.platform.label }}_ ${{ matrix.platform.arch }}_${VERSION }${{ matrix.platform.ext }}"
131+ echo "ASSET_NAME=free-proxy_cli_${{ matrix.platform.label }}_ ${{ matrix.platform.arch }}_${VERSION }${{ matrix.platform.ext }}" >> "$GITHUB_ENV"
131132
132133 - name : Upload CLI to Release
133134 uses : softprops/action-gh-release@v3
0 commit comments