This will install gtk-mac-bundler in ~/.local/bin (the same place as the gtk-osx install script puts jhbuild). More details may be found in the README provided with the source and in the comments in the example files (found in the examples folder). What follows is a basic procedure for getting and using gtk-mac-bundler. You can clone the latest code with git from Gnome Gitlab. Gtk-OSX provides a tool, gtk-mac-bundler, to build the application bundle for you. Python programs substitute a custom C program that links libpython, executes a python script to set up the environment, and then runs the bundled python program. You can also write your app to load the environment from another file or from the defaults system using GSettings. There are alternatives: ist keys is perhaps the most straightforward as long as you need only to set variables with no scripting. The catch is that shell scripts tend to view spaces as delimiters between arguments, so paths with spaces cause trouble unless particular care is taken in writing the launcher script. If you can design the application so that it doesn't need files outside of the bundle, users will be able to install it by simply dragging it from a disk image that they download to whatever folder they like.Īlmost wherever they like: Gtk+ applications typically depend heavily on environment variables, so the app bundle will have a shell script to set everything up (called a " launcher script"). Once you have your application running, you'll want to create an application bundle that you (or your users) can drag to a convenient place and launch by double-clicking on it in Finder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |