bundle Persepolis Download Manager for windosw #1
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 windosw | |
on: workflow_dispatch | |
jobs: | |
bundle-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Get persepolis | |
uses: actions/checkout@v4 | |
with: | |
repository: persepolisdm/persepolis | |
path: persepolis | |
- name: Get build assets | |
uses: actions/checkout@v4 | |
with: | |
repository: persepolisdm/persepolis-windows-package-build | |
path: persepolis-windows-package-build | |
- name: Install requirements | |
run: pip install PySide6 requests pypiwin32 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-win64-gpl.zip" | |
- name: Build | |
run: | | |
cd persepolis | |
pyinstaller '.\resources\PersepolisBI.py' -F -i '..\persepolis-windows-package-build\persepolis2.ico' -n "PersepolisBI" --version-file '..\persepolis-windows-package-build\bi_version.py' --clean | |
pyinstaller '.\persepolis\Persepolis Download Manager.py' -F -w -i '..\persepolis-windows-package-build\persepolis1.ico' -n "Persepolis Download Manager" --version-file '..\persepolis-windows-package-build\version.py' --clean | |
- name: Extract ffmpeg | |
run: 7z e ffmpeg-master-latest-win64-gpl.zip -o'.\persepolis\dist' ffmpeg-master-latest-win64-gpl/bin/ffmpeg.exe | |
- name: Build Installer | |
uses: Minionguyjpro/[email protected] | |
with: | |
path: persepolis-windows-package-build\setupX64.iss | |
options: /O+ | |
- name: Archive build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Archive build | |
path: .\persepolis-windows-package-build\Output\ |