From 0b68e041dbfee0e64f29d6a526f2f65b908cb046 Mon Sep 17 00:00:00 2001 From: ASLant <2041438004@qq.com> Date: Wed, 12 Nov 2025 19:32:53 +0800 Subject: [PATCH] =?UTF-8?q?ci:=E6=9B=B4=E6=94=B9=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 16 +++++++++++++--- src-tauri/tauri.conf.json | 4 ++-- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2781630..accc751 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: if: matrix.platform.os == 'windows-latest' uses: actions/upload-artifact@v4 with: - name: upx-gui-${{ matrix.platform.name }} + name: UPX-Tools-${{ matrix.platform.name }} path: | src-tauri/target/release/bundle/msi/*.msi src-tauri/target/release/bundle/nsis/*.exe diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 831a711..e99d5e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,13 +56,23 @@ jobs: shell: pwsh run: | New-Item -Path "release" -ItemType Directory -Force - # 复制文件 + # 获取版本号 + $version = "${env:GITHUB_REF}" -replace "refs/tags/v", "" + + # 复制并重命名 MSI 文件 Get-ChildItem -Path "src-tauri/target/release/bundle/msi/*.msi" -ErrorAction SilentlyContinue | ForEach-Object { - Copy-Item $_.FullName -Destination "release/" + $newName = "UPX-Tools-${version}-x64.msi" + Copy-Item $_.FullName -Destination "release/$newName" + Write-Host "Created: $newName" } + + # 复制并重命名 NSIS 文件 Get-ChildItem -Path "src-tauri/target/release/bundle/nsis/*.exe" -ErrorAction SilentlyContinue | ForEach-Object { - Copy-Item $_.FullName -Destination "release/" + $newName = "UPX-Tools-${version}-x64-setup.exe" + Copy-Item $_.FullName -Destination "release/$newName" + Write-Host "Created: $newName" } + Get-ChildItem -Path "release/" -Recurse | ForEach-Object { Write-Host $_.Name } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6c4cd9e..e344528 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "UPX加壳脱壳", + "productName": "UPX-Tools", "version": "1.0.0", "identifier": "top.aslant.upxgui", "build": { @@ -13,7 +13,7 @@ "windows": [ { "label": "main", - "title": "UPX加壳脱壳", + "title": "UPX-Tools", "width": 1000, "height": 800, "minWidth": 900,