mirror of
https://github.com/yaronzz/Tidal-Media-Downloader.git
synced 2026-06-13 12:15:12 +03:00
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Tidal Media Downloader
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
BuildWin:
|
|
name: Build windows
|
|
runs-on: windows-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.exe
|
|
rm -rf exe/tidal-gui.exe
|
|
working-directory: TIDALDL-PY
|
|
|
|
- name: Build tidal-dl
|
|
run: |
|
|
pyinstaller -F tidal_dl/__init__.py
|
|
mv dist/__init__.exe exe/tidal-dl.exe
|
|
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 exe/tidal-gui.exe
|
|
cp -rf tidal_gui/resource exe/
|
|
working-directory: TIDALDL-PY
|
|
|
|
- name: Zip exe
|
|
shell: bash
|
|
run: |
|
|
tar -zcvf tidal_dl_win.tar.gz ./*
|
|
working-directory: TIDALDL-PY/exe
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: tidal-dl-win
|
|
path: |
|
|
TIDALDL-PY/exe/tidal_dl_win.tar.gz
|
|
|