mirror of
https://github.com/yaronzz/Tidal-Media-Downloader.git
synced 2026-06-13 04:05:07 +03:00
update workflow
This commit is contained in:
@@ -60,4 +60,62 @@ jobs:
|
||||
name: tidal-dl-win
|
||||
path: |
|
||||
TIDALDL-PY/exe/tidal_dl_win.tar.gz
|
||||
|
||||
|
||||
|
||||
BuildLinux:
|
||||
name: Build linux
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
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
|
||||
rm -rf exe/tidal-dl
|
||||
rm -rf exe/tidal-gui
|
||||
working-directory: TIDALDL-PY
|
||||
|
||||
- name: Build tidal-dl
|
||||
run: |
|
||||
pyinstaller -F tidal_dl/__init__.py
|
||||
mv dist/__init__ exe/tidal-dl
|
||||
working-directory: TIDALDL-PY
|
||||
|
||||
- name: Build tidal-gui
|
||||
shell: bash
|
||||
run: |
|
||||
cp -rf guiStatic.in MANIFEST.in
|
||||
pyinstaller -F tidal_gui/__init__.py -w
|
||||
mv dist/__init__ exe/tidal-gui
|
||||
cp -rf tidal_gui/resource exe/
|
||||
working-directory: TIDALDL-PY
|
||||
|
||||
- name: Zip exe
|
||||
shell: bash
|
||||
run: |
|
||||
tar -zcvf tidal_dl_linux.tar.gz ./*
|
||||
working-directory: TIDALDL-PY/exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: tidal-dl-linux
|
||||
path: |
|
||||
TIDALDL-PY/exe/tidal_dl_linux.tar.gz
|
||||
Reference in New Issue
Block a user