Created Package Manuskript for Windows with wine (markdown)

Tobias Frisch 2021-11-10 12:30:42 +01:00
parent da8400c541
commit 7fc814fcd8

@ -0,0 +1,28 @@
# SUMMARY
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.
# CONSIDERATIONS
This document is heavily based on the guide to [Package Manuskript for Windows with PyInstaller](https://github.com/olivierkes/manuskript/wiki/Package-Manuskript-for-Windows-with-PyInstaller).
# PREPARATION
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._
# CREATE ZIP PACKAGE WITH EXE
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.