-
-
Notifications
You must be signed in to change notification settings - Fork 476
77 lines (63 loc) · 1.86 KB
/
build.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
67
68
69
70
71
72
73
74
name: Build exe
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
shell: bash
run: |
pip3 install wheel
pip3 install pyinstaller
pip3 install PyQt5
pip3 install -r requirements.txt --upgrade
working-directory: TIDALDL-PY
- name: Clean directory
shell: bash
run: |
rm -rf dist
rm -rf build
rm -rf tidal_dl.egg-info
rm -rf tidal_gui.egg-info
rm -rf MANIFEST.in
working-directory: TIDALDL-PY
- name: Build tidal-dl
run: |
pyinstaller -F tidal_dl/__init__.py -n tidal-dl
working-directory: TIDALDL-PY
# - name: Build tidal-gui-macOs
# shell: bash
# if: ${{ matrix.os == 'macos-latest' }}
# run: |
# cp -rf guiStatic.in MANIFEST.in
# pyinstaller -F tidal_gui/__init__.py -w -n tidal-gui
# cp -rf tidal_gui/resource dist/
# working-directory: TIDALDL-PY
# - name: Build tidal-gui
# shell: bash
# if: ${{ matrix.os != 'macos-latest' }}
# run: |
# cp -rf guiStatic.in MANIFEST.in
# pyinstaller -D tidal_gui/__init__.py -w -n tidal-gui
# working-directory: TIDALDL-PY
# - name: Gzip tidal-gui
# shell: bash
# if: ${{ matrix.os != 'macos-latest' }}
# run: |
# cp -rf ../tidal_gui/resource ./tidal-gui/
# tar -zcvf tidal-gui.tar.gz tidal-gui
# rm -rf tidal-gui
# working-directory: TIDALDL-PY/dist
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: tidal-dl-${{ runner.os }}
path: |
TIDALDL-PY/dist/*