Skip to content

Instantly share code, notes, and snippets.

@mjakeman
mjakeman / distribute-windows-msys2.md
Last active March 1, 2024 00:34
An easy way to distribute GTK applications and dependenices on Windows

Distribute GTK Apps with Windows (MSYS2)

Make sure package mingw-w64-x86_64-gtk3 is installed. Build your project with a custom prefix (e.g. ~/my-gtk-app-prefix). Navigate to this directory such that you have subdirectories 'bin', 'lib', 'share', etc containing the executable to distribute.

1. Dependent DLLs

The following command copies all dependent DLLs to the current directory: