-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.24 KB
/
python-app.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Build Executables
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
if (Test-Path source\GUIrequire.txt) { pip install -r source\GUIrequire.txt }
- name: Build Windows exe EN
run: |
pyinstaller --onefile -w GUI_EN.py
working-directory: source
- name: Upload EN executable
uses: actions/upload-artifact@v2
with:
name: GUI_EN.exe
path: source\dist\GUI_EN.exe
- name: Build Windows exe ZHCN
run: |
pyinstaller --onefile -w GUI_ZhCN.py
working-directory: source
- name: Upload ZHCN executable
uses: actions/upload-artifact@v2
with:
name: GUI_ZhCN.exe
path: source\dist\GUI_ZhCN.exe