diff --git a/Cargo.toml b/Cargo.toml index 2e40db4..d6c8b56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,4 @@ default = ["gtk"] gtk = ["dep:gtk4"] libnotify = ["dep:libnotify", "dep:gdk-pixbuf"] notify-rust = ["dep:notify-rust"] -winapi = ["dep:winapi", "dep:winresource"] - -[workspace.metadata.cross.target.x86_64-pc-windows-gnu] -image = "mglolenstine/gtk4-cross:rust-gtk-4.12" +winapi = ["dep:winapi", "dep:winresource"] \ No newline at end of file diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000..9dd41f8 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,2 @@ +[target.x86_64-pc-windows-gnu] +image = "mglolenstine/gtk4-cross:rust-gtk-4.12" \ No newline at end of file diff --git a/docs/compiling.md b/docs/compiling.md index a8406cc..da9d80d 100644 --- a/docs/compiling.md +++ b/docs/compiling.md @@ -63,3 +63,23 @@ You'll get a desktop file contents, just edit paths here and write it to a new f All of these, with adding icons and other, makes this command: `make install` (using `gnumake` package) \ But make sure, that you have `.local/bin` in the `PATH` variable, otherwise it won't work. \ Now, if you'll run with the desktop file, GNotifications will work perfectly. + +# Cross-compiling + +## From Linux to Windows + +```bash +./misc/build.sh +``` + +## From NixOS to Windows + +```bash +nix-shell -p rustup gcc cargo-cross +rustup toolchain install stable +./misc/build.sh +``` + +## From Windows to Linux + +That's your problem \ No newline at end of file