-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (55 loc) · 1.48 KB
/
build_win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: 'Build Windows packages v1.0.1'
on:
workflow_call:
inputs:
TAG:
default: 'testing'
required: true
type: string
workflow_dispatch:
inputs:
TAG:
default: 'testing'
required: true
type: string
jobs:
windows:
name: Build Windows EXE & ZIP
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r res/requirements.txt
pip install pyinstaller
pip install pyinstaller-hooks-contrib
- name: Build EXE with Pyinstaller
run: |
pyinstaller --noconfirm .github/workflows/JWLManager.exe.spec
- name: Rename EXE
run: |
cd dist
ren JWLManager.exe JWLManager_${{ inputs.TAG }}.exe
- name: Build with Pyinstaller
run: |
pyinstaller --clean --noconfirm .github/workflows/JWLManager.zip.spec
- name: Rename & zip folder
run: |
cd dist
tar.exe -a -c -f JWLManager_${{ inputs.TAG }}.zip JWLManager
- name: Upload EXE
uses: actions/upload-artifact@v4
with:
name: WindowsEXE
path: dist/JWLManager_${{ inputs.TAG }}.exe
- name: Upload ZIP
uses: actions/upload-artifact@v4
with:
name: WindowsZIP
path: dist/JWLManager_${{ inputs.TAG }}.zip