-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (65 loc) · 1.94 KB
/
package.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
64
65
66
name: Package
on: [push, pull_request]
jobs:
package-macos:
runs-on: macos-latest
env:
PIPENV_VENV_IN_PROJECT: 1
PIPENV_IGNORE_VIRTUALENVS: 1
steps:
- uses: actions/checkout@v3
- name: Setup Python Environment
run: |
pip3 install pipenv
pipenv install pyqt5 lxml
pipenv run pip install pyqt5==5.15.6 lxml
- name: Build LabelImg
run: |
pipenv run make qt5py3
rm -rf build dist
- name: Package LabelImg
run: |
pipenv run python setup.py py2app
open dist/labelImg.app
- name: Archive macOS app
run: |
cd dist/
tar czf labelImg.tgz labelImg.app
- uses: actions/upload-artifact@v3
with:
name: macOS artifact
path: dist/labelImg.tgz
package-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python Environment
run: |
pip3 install pyinstaller pyqt5==5.15.6 lxml
- name: Build LabelImg
run: |
pyrcc5 -o libs/resources.py resources.qrc
- name: Package LabelImg
run: |
pyinstaller --hidden-import=pyqt5 --hidden-import=lxml -F -n "labelImg" -c labelImg.py -p ./libs -p ./
- uses: actions/upload-artifact@v3
with:
name: Windows artifact
path: dist/labelImg.exe
package-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python Environment
run: |
pip3 install pyinstaller pyqt5==5.15.6 lxml
- name: Build LabelImg
run: |
pyrcc5 -o libs/resources.py resources.qrc
- name: Package LabelImg
run: |
pyinstaller --hidden-import=pyqt5 --hidden-import=lxml -F -n "labelImg" -c labelImg.py -p ./libs -p ./
- uses: actions/upload-artifact@v3
with:
name: Linux artifact
path: dist/labelImg