Skip to content

[Packaging] Generate Windows binaries with pyInstaller (HowTo)

Olivier edited this page Apr 1, 2016 · 1 revision

This is a little guide to generate the Windows binaries of manuskript.

I installed this versions and it worked, but you can try newers versions if you want or can't find the older ones. You need to install:

Get python and pyqt 5 installers and execute both on your windows system choosing the default options. When everything is installed, open a command line windows and go to C:\Python34\Scripts. Execute this commands to install lxml, pyenchant and pyinstaller:

  • pip install lxml
  • pip install pyenchant
  • pip install pyInstaller

If some of them fails, maybe you need to upgrade pip. You need to open another command line as Administrator. Press Right click on the Command Line icon and choose Execute as Administrator. Go to C:\Python32\scripts and run: pip install --upgrade pip

Now, you can download the last code of manuskript from the download page: http://www.theologeek.ch/manuskript/download/

Unzip it in any folder and in your command line window go to that folder, for example C:\manuskript. Then execute: C:\Python34\Scripts\pyInstaller manuskript.spec

After some minutes it will create two folders: build and dist. The dist folder contains your main manuskript folder. Try to open dist\manuskript\manuskript.exe and check if everything looks ok.

The log file with the warnings and errors is at build\manuskript\warnmanuskript.txt

Happy writing!

(Written by vmpajares)

Clone this wiki locally