-
-
Notifications
You must be signed in to change notification settings - Fork 19
63 lines (60 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: python compile(Linux&Windows)
on:
release:
types: [ published ]
push:
branches:
- master
paths-ignore:
- '*.md'
- '*.json'
- '*.txt'
- '*.yml'
- '*.yaml'
- 'setup.py'
- 'pyproject.toml'
jobs:
linux-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Compile bin
run: |
pyinstaller -n Linux-copymanga-downloader -F main.py -i icon.ico --onefile
- name: upload bin
uses: actions/upload-artifact@master
with:
name: copymanga-downloader-Linux
path: dist/
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
if (Test-Path -path "requirements.txt" -PathType Leaf) {
pip install -r requirements.txt
}
- name: Compile exe
run: |
pyinstaller -n Windows-copymanga-downloader -F main.py -i icon.ico --onefile
- name: upload exe
uses: actions/upload-artifact@master
with:
name: copymanga-downloader-windows
path: dist/Windows-copymanga-downloader.exe