Skip to content

Commit

Permalink
add BI build
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaasadi authored Apr 3, 2024
1 parent 9b82333 commit 5318cc7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 5318cc7

Please sign in to comment.