Skip to content

Commit

Permalink
docs(build): update windows build instructions
Browse files Browse the repository at this point in the history
MSYS2 is now used for gtk/libadwaita instead of gvsbuild.
  • Loading branch information
Oppzippy committed Mar 16, 2024
1 parent b8e8358 commit 31066a7
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions docs/build-windows.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
## Building OpenSCQ30 on Windows

1. Install [cargo-make](https://github.com/sagiegurari/cargo-make#installation)
2. Install [gvsbuild](https://github.com/wingtk/gvsbuild) and its dependencies using the [instructions in the readme](https://github.com/wingtk/gvsbuild#development-environment).
3. Follow the [instructions for building GTK4 and libadwaita](https://github.com/wingtk/gvsbuild#build-gtk).
4. Set the [environment variables from the gvsbuild instructions](https://github.com/wingtk/gvsbuild#add-gtk-to-your-environmental-variables)
5. `cd` to the `gui` directory and run `cargo make --profile release build`. Note that `--profile release` must come before `build`.
6. The compiled binary can be found at `target\release\openscq30_gui.exe`
7. For distribution, make a new folder and copy the following into it:

| From | To |
| --------------------------------------------------- | ---------------------- |
| target\release\openscq30_gui.exe | bin\openscq30_gui.exe |
| target\release\share | share |
| C:\gtk-build\gtk\x64\release\bin\\\*.dll | bin\\\*.dll |
| C:\gtk-build\gtk\x64\release\bin\gdbus.exe | bin\gdbus.exe |
| C:\gtk-build\gtk\x64\release\share\glib-2.0\schemas | share\glib-2.0\schemas |
| C:\gtk-build\gtk\x64\release\share\locale | share\locale |
1. Install MSYS2 and run the UCRT64 environment.
2. Install dependencies using `pacman -Syu base-devel mingw-w64-ucrt-x86_64-libadwaita mingw-w64-ucrt-x86_64-rust mingw-w64-ucrt-x86_64-pkg-config`.
3. Install cargo-make: `cargo install cargo-make`.
4. Run `./packaging/windows/build.sh`
5. The compiled binary along with all dependencies can be found at `packaging/windows/root`. This can then be moved and run from outside of the MSYS2 environment.

0 comments on commit 31066a7

Please sign in to comment.