From 5318cc788d6a6d84222e320a77e5b4f64dc9dbd7 Mon Sep 17 00:00:00 2001 From: Mostafa Asadi Date: Wed, 3 Apr 2024 20:03:52 +0330 Subject: [PATCH] add BI build --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7d694eb..b9530dd 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Download latest [python3](https://www.python.org/downloads/windows/) and install `pip install PySide6 requests pypiwin32 setproctitle psutil yt_dlp pyinstaller` - Persepolis is gui for [**Aria2**](https://aria2.github.io) so we need it, you can download latest or specific version according to your system from [Aria2 release page](https://github.com/aria2/aria2/releases/) - - Persepolis uses [ffmpeg](https://www.ffmpeg.org/) for mixing videos ([more info.](https://github.com/persepolisdm/persepolis/wiki/How-can-I-download-videos-from-youtube)). Download [ffmpeg](https://ffmpeg.zeranoe.com/builds](https://github.com/BtbN/FFmpeg-Builds/releases)/) (we use latest gpl version). + - Persepolis uses [**ffmpeg**](https://www.ffmpeg.org/) for mixing videos ([more info.](https://github.com/persepolisdm/persepolis/wiki/How-can-I-download-videos-from-youtube)). Download [ffmpeg](https://ffmpeg.zeranoe.com/builds](https://github.com/BtbN/FFmpeg-Builds/releases)/) (we use latest gpl version). # step 2: test and run Move **aria2c.exe** and **ffmpeg.exe** to the test folder next to the test.py according to your system architecture @@ -54,12 +54,18 @@ Open Windows terminal and Enter cloned persepolis directory with `cd` command. r # step 3: build and freeze Now let's build persepolis! -place `version.py` (need updates) and `persepolis.ico` in perseplois folder. +place `version.py` (need updates) and `persepolis` icons in perseplois folder. -run Windows terminal and enter persepolis folder so build persepolis by pyinstaller with this command: +run Windows terminal and enter persepolis folder so build Pesrpolis browser integration by pyinstaller with this command: ``` - pyinstaller '.\persepolis\Persepolis Download Manager.py' -F -w -i persepolis.ico -n "Persepolis Download Manager" --version-file version.py --clean +pyinstaller '.\resources\PersepolisBI.py' -F -i persepolis2.ico -n "PersepolisBI" --version-file version.py --clean +``` + +and build persepolis with this command: + +``` + pyinstaller '.\persepolis\Persepolis Download Manager.py' -F -w -i persepolis1.ico -n "Persepolis Download Manager" --version-file version.py --clean ``` `-w` means it is a windowed app, not a console one.