Skip to content

Commit 040a420

Browse files
committed
ci: 使用pip下载pyinstaller
1 parent 20c48bf commit 040a420

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,25 @@ on:
66
jobs:
77
build:
88
if: startsWith(github.ref, 'refs/tags/')
9-
runs-on: ubuntu-latest
9+
runs-on: windows-latest
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@v2
13-
- name: Build executable with PyInstaller
14-
uses: JackMcKew/pyinstaller-action-windows@v0.1.2
13+
- name: Install Python
14+
uses: actions/setup-python@v1
1515
with:
16-
path: '.'
17-
spec: 'k2c.spec' # 可选
18-
# requirements: 'requirements.txt' # 可选
16+
python-version: '3.13'
17+
architecture: 'x64'
18+
- name: Install requirements and installer
19+
run: |
20+
pip install -r requirements.txt
21+
pip install pyinstaller
22+
- name: Run pyinstaller
23+
run: |
24+
python -m PyInstaller k2c.spec
1925
- run: ls dist
2026
- run: mv dist/k2c.exe .
21-
- name: zip the build
22-
run: |
23-
zip -r k2c.zip k2c.exe
24-
ls .
27+
- run: ls .
2528
- name: Build Changelog
2629
id: github_release
2730
uses: mikepenz/release-changelog-builder-action@v5

0 commit comments

Comments
 (0)