-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.8 KB
/
windows_x64_bundle.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
name: Package Persepolis DM for windows x64
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 pysocks
- 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\