ci(build-release): 添加图标文件验证步骤并修复图标路径配置

在构建发布工作流中添加了图标文件存在性验证步骤,确保构建时图标文件存在。
同时修改了 build.spec 文件中的图标路径配置方式,使用相对路径替代原有的绝对路径拼接方式,
以提高配置的可靠性和可维护性。
This commit is contained in:
欧阳淇淇
2025-12-17 23:43:56 +08:00
parent ef7763dea0
commit ca6ef6443b
2 changed files with 13 additions and 4 deletions

View File

@@ -31,6 +31,17 @@ jobs:
$version = "${{ github.ref_name }}"
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
- name: Verify icon file
run: |
cd source
if (Test-Path "assets/images/ICO/icon.ico") {
Write-Host "Icon file found"
Get-Item "assets/images/ICO/icon.ico"
} else {
Write-Host "Icon file NOT found!"
exit 1
}
- name: Build with PyInstaller
run: |
cd source