Package Persepolis DM for linux x64 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bundle Persepolis Download Manager for linux | |
on: workflow_dispatch | |
jobs: | |
bundle-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get persepolis | |
uses: actions/checkout@v4 | |
with: | |
repository: persepolisdm/persepolis | |
path: persepolis | |
- name: Install dependencies | |
run: | | |
sudo apt -y update | |
# sudo apt -y upgrade | |
sudo apt -y install python3-virtualenv libxcb-cursor0 libxcb-shape0 libxcb-xkb1 libxkbcommon-x11-0 libxcb-keysyms1 libxcb-icccm4 libxcb-shape0 python3-pip xz-utils unzip | |
- name: Install requirements | |
run: pip install PySide6 PySide6-Addons requests setproctitle psutil yt-dlp pyinstaller urllib3 | |
- name: Download ffmpeg | |
uses: robinraju/[email protected] | |
with: | |
repository: "yt-dlp/FFmpeg-Builds" | |
latest: true | |
fileName: "ffmpeg-master-latest-linux64-gpl.tar.xz" | |
- name: Extract ffmpeg | |
run: tar -xf ffmpeg-master-latest-linux64-gpl.tar.xz ffmpeg-master-latest-linux64-gpl/bin/ffmpeg --strip-components 2 | |
- name: Build | |
run: pyinstaller -n "Persepolis Download Manager" -F --clean --windowed --add-binary "ffmpeg:." ./persepolis/persepolis/Persepolis\ Download\ Manager.py | |
- name: Archive build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Archive build | |
path: dist/Persepolis\ Download\ Manager |