rhx / SwiftGtk

A Swift wrapper around gtk-3.x and gtk-4.x that is largely auto-generated from gobject-introspection
https://rhx.github.io/SwiftGtk/
BSD 2-Clause "Simplified" License
317 stars 26 forks source link

How i can create a MacOS app from your build? #8

Closed notadevop closed 5 years ago

notadevop commented 6 years ago

Hi, i saw in examples that you have shell script that generates MacOS app, i would like setup your GTK to my app that i can use it on both systems (macos and linux), but i don't understand how generates macos app. Does your gtk implementation includes all UI Objects for using ???

rhx commented 6 years ago

A macOS app is simply a folder with the executable, the resources (e.g. UI objects), and libraries. The app-bundle.sh script is the one doing this. The only magic it is doing is to recursively (up to 3 levels) copy the libraries and change the runtime dynamic linker search path to the app, so you can simply install the app as a standalone app (by copying it to the /Applications folder).