更新 .github/workflows/build-exe.yml
Some checks failed
Build Windows EXE / build (push) Failing after 8s
Some checks failed
Build Windows EXE / build (push) Failing after 8s
This commit is contained in:
15
.github/workflows/build-exe.yml
vendored
15
.github/workflows/build-exe.yml
vendored
@@ -30,17 +30,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: exe
|
name: exe
|
||||||
path: dist/Shortcut_Sync_PotPlayer.exe
|
path: dist/Shortcut_Sync_PotPlayer.exe
|
||||||
|
|
||||||
- name: Build with PyInstaller
|
|
||||||
run: |
|
|
||||||
# --clean 确保清理旧缓存
|
|
||||||
# --admin-access 如果你的程序需要监听全局钩子,有时需要此权限
|
|
||||||
python -m PyInstaller --noconfirm --onefile --windowed --name "Shortcut_Sync_PotPlayer" main.py
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: PotPlayer-Sync-Tool
|
|
||||||
path: dist/Shortcut_Sync_PotPlayer.exe
|
|
||||||
retention-days: 7 # 临时文件保存7天
|
|
||||||
Reference in New Issue
Block a user