-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(build): update windows build instructions
MSYS2 is now used for gtk/libadwaita instead of gvsbuild.
- Loading branch information
Showing
1 changed file
with
5 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |