In some more fun #puregotk #GNOME news - I managed to get Meson to work on macOS.
-
In some more fun #puregotk #GNOME news - I managed to get Meson to work on macOS. You can even write a GObject library in Go now, compile it to a dylib and typelib, and then another puregotk-based app (or GJS, Python etc.) can load the custom widget and display it with no issues!
Even cooler - you can cross-compile this for macOS from Linux, no CGo/macOS C compiler required


-
In some more fun #puregotk #GNOME news - I managed to get Meson to work on macOS. You can even write a GObject library in Go now, compile it to a dylib and typelib, and then another puregotk-based app (or GJS, Python etc.) can load the custom widget and display it with no issues!
Even cooler - you can cross-compile this for macOS from Linux, no CGo/macOS C compiler required


@deobald I get the urge to actually write a proper packaging thing for this now lol
-
@deobald I get the urge to actually write a proper packaging thing for this now lol
@pojntfx I really want a “flatmac” like thing for foundry so running “foundry export” on a Mac would get you something similar to what we do with the Flatpak bundle. Maybe even a similar file format.
-
@pojntfx I really want a “flatmac” like thing for foundry so running “foundry export” on a Mac would get you something similar to what we do with the Flatpak bundle. Maybe even a similar file format.
@chergert Ha! Yeah, that’s exactly what I’ve been hacking around with as well. Takes in a flatpak manifest + “-x” keys, builds the thing in darlinghq w/ the XCode toolchain, fetches packages from Homebrew, copies the dylibs and stuff over to a .app, makes a .dmg, signs the bundle et voilà.
The biggest thing I can’t figure out is how to update it. On Windows I used some MSI tricks when I last did this, on macOS I just mounted the new DMG with hdiutils & replaced the .app
-
@chergert Ha! Yeah, that’s exactly what I’ve been hacking around with as well. Takes in a flatpak manifest + “-x” keys, builds the thing in darlinghq w/ the XCode toolchain, fetches packages from Homebrew, copies the dylibs and stuff over to a .app, makes a .dmg, signs the bundle et voilà.
The biggest thing I can’t figure out is how to update it. On Windows I used some MSI tricks when I last did this, on macOS I just mounted the new DMG with hdiutils & replaced the .app
@chergert See https://github.com/pojntfx/hydrapp/tree/main/hydrapp/pkg/builders
Just not sure if it’s worth the time to do more of this kind of work trying to get Linux-centric apps to run on non-Linux vs. something that advances Linux directly
-
In some more fun #puregotk #GNOME news - I managed to get Meson to work on macOS. You can even write a GObject library in Go now, compile it to a dylib and typelib, and then another puregotk-based app (or GJS, Python etc.) can load the custom widget and display it with no issues!
Even cooler - you can cross-compile this for macOS from Linux, no CGo/macOS C compiler required


@pojntfx that is really awesome!
-
G gnome@floss.social shared this topic