-
Notifications
You must be signed in to change notification settings - Fork 236
Package Manuskript for Windows with wine
This guide describes the steps for packaging Manuskript for Windows from Linux. The resulting package runs on x86 (32 bit) and x86-64 bit Windows computers.
This document is heavily based on the guide to Package Manuskript for Windows with PyInstaller.
Install tools needed to build package.
sudo pacman -Syu
sudo pacman -S wine bash wget awk grep zip
Most GNU/Linux distributions should already have these tools preinstalled except wine.
Run the following command/script and wait for it to finish:
./package/build_for_windows.sh
The script creates a new custom wine-prefix on your system in a temporary directory. It will install Python and Pandoc automatically to the prefix via their installation setups for Windows. Then it will continue installing all required packages and dependencies via pip in the prefix. As last step it will create a Windows compatible binary using the PyInstaller from the prefix and remove unnecessary libraries to prevent crashes before zipping the files needed for installation. The zipped archive will be moved to the location you have run the script from and the wine prefix will be deleted afterwards.