forked from Xingshu/Shortcut_Sync_PotPlayer
Compare commits
1 Commits
65e9670a78
...
miu-patch-
35
.github/workflows/build-exe.yml
vendored
Normal file
35
.github/workflows/build-exe.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: Build Windows EXE with Full Image
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: Ubuntu_docker_act
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Wine
|
||||||
|
run: |
|
||||||
|
wine --version # 安装后验证
|
||||||
|
|
||||||
|
- name: Install Windows dependencies using Wine Python
|
||||||
|
run: |
|
||||||
|
# 使用 Wine 运行 Windows 版本的 Python
|
||||||
|
wine python -m pip install --upgrade pip
|
||||||
|
wine python -m pip install pyinstaller keyboard pywin32
|
||||||
|
|
||||||
|
# 环境已预装,直接验证
|
||||||
|
- name: Verify tools
|
||||||
|
run: |
|
||||||
|
node --version
|
||||||
|
wine python --version
|
||||||
|
wine --version # 确认 wine 是否存在,full 镜像很可能包含
|
||||||
|
|
||||||
|
- name: Build EXE using Wine Python
|
||||||
|
run: |
|
||||||
|
wine python -m PyInstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Shortcut_Sync_PotPlayer
|
||||||
|
path: dist/Shortcut_Sync_PotPlayer.exe
|
||||||
Reference in New Issue
Block a user