Skip to content

Nihilnaut/persepolis-windows-package-build

 
 

Repository files navigation

Persepolis MicroSoft Windows package build

windows package build for Persepolis Download Manager

We build stable releases safely and you don't need to build it yourself. You can download Persepolis Download Manager for Microsoft Windows from release page. If you want to build Persepolis for Windows yourself, then this instruction can help you.

step 1: Preparing

You can download project form our github page or using git clients. I recommend git for windows

You can download the stable version Source code from release page or last git version from the master branch. After downloading or cloning, extract and enter persepolis path. you can see this structure for directories now.

persepolis
├── man
├── persepolis
│   ├── gui
│   └── scripts
├── resources
│   ├── Breeze
│   ├── Breeze-Dark
│   ├── locales
│   ├── Papirus
│   ├── Papirus-Dark
│   └── Papirus-Light
├── test
└── xdg

You also need some file that we put them in this repository and we use them to build persepolis. so clone or download this repository

  • 1-2 python

persepolis has been written in python so we need python3 to build it, after freezing and building the package there are no more need to python and its library. Download latest python3 and install it.

remember the destination directory and enable the “Add Python 3.7 to PATH” option.

  • 1-3 dependencies & libraries

Install these libraries with pip from windows cmd or powershell (you should run pip as Admin)

pip install pyqt5 requests pypiwin32 setproctitle psutil youtube_dl pyinstaller

Persepolis is gui for Aria2 so we need it, you can download latest or specific version according to your system from Aria2 release page or use one of Aria2 build ithat I put in this repository at aria2 folder (we will need it ahead) Persepolis uses ffmpeg for mixing videos(more info.). Download ffmpeg yourself or use ffmpeg build in this repository.

  • 1-4 windows SDK

Download and install the Windows Software Development Kit (SDK) for Windows 10. we need it for Application Certification Kit API.

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

Open power shell or Windows CMD or git bash and Enter cloned persepolis directory with cd command. run persepolis as test with this command.

python test/test.py

  • now persepolis should run as a python script. If you get some error you may had mistake. Open an issue here, We will help you :)

step 3: build and freeze

Now let's build persepolis!

place version.py and persepolis.ico in perseplois folder.

run Windows cmd or powershell (as Admin) and enter persepolis folder so build persepolis by pyinstaller with this command:

pyinstaller '.\persepolis\Persepolis Download Manager.py'  -p "C:\Program Files (x86)\Windows Kits\10
\Redist\ucrt\DLLs\x64" -p C:\python35\Lib\site-packages\PyQt5\Qt\bin\ -w -F -i persepolis.ico -n "Persepolis Download Manager
" --version-file version.py

If you changed windows SDK (step 1-4) and python (step 1-2) installation directory you should change -p(path)

-w means it is a windowed app, not a console one.

-F Create a one-file bundled executable.

-i perseplois icon.

-n name of bundled executable.

--version-file add persepolis version resource from version.py to the exe.

If everything goes well, you have some output like this

pyinstaller

If you get error messages, you made mistake. Open an issue here, We will help you :)

  • After this, you have bundled executable file in dist folder, Move ffmpeg.exe and aria2c.exe next to the Persepolis Download Manager.exe. you can run it and test it, it works perfectly

step 4: create package installer

You have executable perseplois and you can put it everywhere (next to the and ffmpeg.exe and aria2c.exe) but we going to create a installer for windows.

  • Download and install Inno Setup
  • you can create your installation or use our standard one, I put theme in this repository for both 32 and 64 architecture (.iss files). you should edit [Files] section and LicenseFile, InfoAfterFile, OutputBaseFilename, SetupIconFile, UninstallDisplayIcon according to your directory name, also I put license, persepolis readme, after installation text and icon in this repository.
  • Build and compile installation if everything goes well, you have a persepolis installer.

Enjoy it. 😊

About

A instruction to build persepolis from source for windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Inno Setup 87.4%
  • Python 12.6%