ci:更改输出名称

This commit is contained in:
ASLant committed 2025-11-12 19:32:53 +08:00
1 parent e383990e9c
commit 0b68e041db
3 files changed
+16 -6

No files matched your search

+1 -1
View File
@@ -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
+13 -3
View File
@@ -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 }
+2 -2
View File
@@ -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,