Re:Show HN: Spot – Simple, cross-platform, reactive desktop ...
by da_rob on Friday May 24, 2024 @04:48PM
(#40470365)
The backends (FLTK/Gocoa) are using CGo, which currently does not support cross-compiling as far as I know.
So you still need to have a build pipeline with multiple operating systems, signing/notarization tools, etc. :(
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ...
by mappu on Friday May 24, 2024 @07:09PM
(#40471283)
You can cross-compile Cgo, you "just" need a C compiler and linker that works for the target platform. osxcross, xgo have some or maybe you can set CC=zig cc.
For macOS you need signing/notarization tools either when building natively or when cross-compiling, it's not any different. `rcodesign` has made this process much easier in recent years.
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ...
by apitman on Friday May 24, 2024 @07:45PM
(#40471472)
+1 for `CC=zig cc`. Feels like magic
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ...
by scosman on Friday May 24, 2024 @05:29PM
(#40470638)
Too bad.
I swear half the electron apps use it for ease of Xplatform build.
I’d love something like this for giving my CLIs UIs.
Re:Show HN: Spot – Simple, cross-platform, reactive desktop ...
by felipefar on Saturday May 25, 2024 @12:10AM
(#40472594)
That'd be amazing not only for go apps but for software built on other languages as well. I'd pay for a good, straightforward build packing + crash reporting + autoupdater solution for my apps.
What does building for cross platform look like? Would love if there was a command that produced my MacOs .app and Windows exe without me having to dive into package management/containers/signing headaches per platform.