[fix] change the file name on upload

This commit is contained in:
Ictye(jj)
2026-01-20 19:03:58 +08:00
parent 7339f4726e
commit db820e1dc2
2 changed files with 8 additions and 4 deletions

View File

@@ -26,6 +26,10 @@ on:
description: '是否在 workflow 完成后创建 GitHub Release 并上传 ziptrue/false。默认 false'
required: false
default: 'false'
pack_appimage:
description: 'Is It Need To Pack AppImage? (true*/false)'
required: false
default: 'true'
jobs:
build-and-package:
@@ -297,7 +301,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.prepare_assets.outputs.release_asset_path }}
asset_name: Ez2Lazer_release_x64.zip
asset_name: Ez2Lazer_release_linux_x64.zip
asset_content_type: application/zip
- name: Upload release asset (debug)
@@ -308,5 +312,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.prepare_assets.outputs.debug_asset_path }}
asset_name: Ez2Lazer_debug_x64.zip
asset_name: Ez2Lazer_debug_linux_x64.zip
asset_content_type: application/zip

View File

@@ -239,8 +239,8 @@ def main():
artifacts_dir = fallback
# Use asset names that match workflow-normalized names when tag present
release_zip = os.path.join(artifacts_dir, f"Ez2Lazer_release_x64{tag_suffix}.zip")
debug_zip = os.path.join(artifacts_dir, f"Ez2Lazer_debug_x64{tag_suffix}.zip")
release_zip = os.path.join(artifacts_dir, f"Ez2Lazer_release_{target_platform}_x64{tag_suffix}.zip")
debug_zip = os.path.join(artifacts_dir, f"Ez2Lazer_debug_{target_platform}_x64{tag_suffix}.zip")
if not args.no_zip:
if os.path.exists(release_dir):