mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
Create OS X application bundles for PuTTY and pterm.
This commit adds two .plist files, which go in the app bundles; two .bundle files, which are input to gtk-mac-bundler and explain to it how to _create_ the bundles; and a piece of manual addition to Makefile.am that actually runs gtk-mac-bundler after building the gtkapp.c based binaries and the OSX launcher. The latter is conditionalised on configuring --with-quartz (unlike the binaries themselves, which you can build on other platforms too, though they won't do much that's useful).
This commit is contained in:
43
unix/putty.bundle
Normal file
43
unix/putty.bundle
Normal file
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||
<app-bundle>
|
||||
|
||||
<meta>
|
||||
<prefix name="default">${env:JHBUILD_PREFIX}</prefix>
|
||||
<run-install-name-tool/>
|
||||
<gtk>gtk+-3.0</gtk>
|
||||
<!-- Optionally specify a launcher script to use. If the
|
||||
application sets up everything needed itself, like
|
||||
environment variable, linker paths, etc, a launcher script is
|
||||
not needed. If the source path is left out, the default
|
||||
script will be used.
|
||||
-->
|
||||
<launcher-script>${project}/../osxlaunch</launcher-script >
|
||||
</meta>
|
||||
|
||||
<plist>${project}/putty.plist</plist>
|
||||
|
||||
<main-binary dest="${bundle}/Contents/MacOS">
|
||||
${project}/../puttyapp
|
||||
</main-binary>
|
||||
|
||||
<binary>
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so
|
||||
</binary>
|
||||
|
||||
<binary>
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
|
||||
</binary>
|
||||
|
||||
<data>
|
||||
${prefix}/share/themes/Adwaita
|
||||
</data>
|
||||
|
||||
<data dest="${bundle}/Contents/Resources">
|
||||
${project}/../icons/PuTTY.icns
|
||||
</data>
|
||||
|
||||
<icon-theme icons="auto">
|
||||
Adwaita
|
||||
</icon-theme>
|
||||
|
||||
</app-bundle>
|
Reference in New Issue
Block a user