Gaphor on Windows¶
Development Environment¶
To setup a development environment in Windows:
Go to http://www.msys2.org/ and download the x86_64 installer
Follow the instructions on the page for setting up the basic environment
Run
C:\msys64\mingw64.exe
- a terminal window should pop up
$ pacman -Suy
$ pacman -S git mingw-w64-x86_64-gcc mingw-w64-x86_64-gtk3 \
mingw-w64-x86_64-pkg-config mingw-w64-x86_64-cairo \
mingw-w64-x86_64-gobject-introspection mingw-w64-x86_64-python \
mingw-w64-x86_64-python-gobject mingw-w64-x86_64-python-cairo \
mingw-w64-x86_64-python-pip
$ cd gaphor
$ source venv
$ poetry run gaphor
Packaging for Windows¶
In order to create an exe installation package for Windows, we utilize PyInstaller which analyzes Gaphor to find all the dependencies and bundle them in to a single folder. We then use a custom bash script that creates a Windows installer using NSIS and a portable installer using 7-Zip.
Follow the instructions for settings up a development environment above
Run
C:\msys64\mingw64.exe
- a terminal window should pop up
$ cd packaging/windows
$ ./build-installer.sh