[recipes] Some data for using gtk-mac-bundler



commit 3262ab4d2a06fd7a0faeb8bd20ea259571fe815a
Author: Matthias Clasen <mclasen Matthiass-MBP home>
Date:   Tue Feb 28 07:46:47 2017 -0500

    Some data for using gtk-mac-bundler

 osx/Info.plist               |   26 +++++++++++++++++++++
 osx/gnome-recipes.sh         |   33 +++++++++++++++++++++++++++
 osx/org.gnome.Recipes.bundle |   50 ++++++++++++++++++++++++++++++++++++++++++
 osx/org.gnome.Recipes.icns   |  Bin 0 -> 188236 bytes
 4 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/osx/Info.plist b/osx/Info.plist
new file mode 100644
index 0000000..d7ad1a8
--- /dev/null
+++ b/osx/Info.plist
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+  <key>CFBundleGetInfoString</key>
+  <string>Recipes</string>
+  <key>CFBundleExecutable</key>
+  <string>gnome-recipes.sh</string>
+  <key>CFBundleIdentifier</key>
+  <string>org.gnome.Recipes</string>
+  <key>CFBundleName</key>
+  <string>Recipes</string>
+  <key>CFBundleIconFile</key>
+  <string>org.gnome.Recipes.icns</string>
+  <key>CFBundleShortVersionString</key>
+  <string>0.18.0</string>
+  <key>CFBundleInfoDictionaryVersion</key>
+  <string>6.0</string>
+  <key>CFBundlePackageType</key>
+  <string>APPL</string>
+  <key>IFMajorVersion</key>
+  <integer>0</integer>
+  <key>IFMinorVersion</key>
+  <integer>1</integer>
+</dict>
+</plist>
diff --git a/osx/gnome-recipes.sh b/osx/gnome-recipes.sh
new file mode 100755
index 0000000..e254e86
--- /dev/null
+++ b/osx/gnome-recipes.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+name=`basename "$0"`
+tmp="$0"
+tmp=`dirname "$tmp"`
+tmp=`dirname "$tmp"`
+bundle=`dirname "$tmp"`
+bundle_contents="$bundle"/Contents
+bundle_res="$bundle_contents"/Resources
+bundle_lib="$bundle_res"/lib
+bundle_bin="$bundle_res"/bin
+bundle_data="$bundle_res"/share
+bundle_etc="$bundle_res"/etc
+
+export DYLD_LIBRARY_PATH="$bundle_lib"
+export XDG_CONFIG_DIRS="$bundle_etc"/xdg
+export XDG_DATA_DIRS="$bundle_data"
+export GTK_DATA_PREFIX="$bundle_res"
+export GTK_EXE_PREFIX="$bundle_res"
+export GTK_PATH="$bundle_res"
+
+# PANGO_* is no longer needed for pango >= 1.38
+export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
+export PANGO_SYSCONFDIR="$bundle_etc"
+export PANGO_LIBDIR="$bundle_lib"
+
+export GDK_PIXBUF_MODULE_FILE="$bundle_lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
+if [ `uname -r | cut -d . -f 1` -ge 10 ]; then
+    export GTK_IM_MODULE_FILE="$bundle_etc/gtk-3.0/gtk.immodules"
+fi
+
+
+exec "$bundle_contents/MacOS/$name-bin"
diff --git a/osx/org.gnome.Recipes.bundle b/osx/org.gnome.Recipes.bundle
new file mode 100644
index 0000000..ec8807d
--- /dev/null
+++ b/osx/org.gnome.Recipes.bundle
@@ -0,0 +1,50 @@
+<?xml version="1.0"?> <!--*- mode: xml -*-->
+<app-bundle>
+  <meta>
+    <prefix>${env:PREFIX}</prefix>
+    <run-install-name-tool/>
+    <gtk>gtk+-3.0</gtk>
+    <launcher-script>${project}/gnome-recipes.sh</launcher-script>
+  </meta>
+
+  <plist>${project}/Info.plist</plist>
+
+  <main-binary>${prefix}/bin/gnome-recipes</main-binary>
+
+  <!-- Modules for GTK+ (image loaders, etc) -->
+  <binary>${prefix}/lib/gtk-3.0</binary>
+
+  <binary>
+    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so
+  </binary>
+
+  <translations name="gnome-recipes">
+    ${prefix}/share/locale
+  </translations>
+
+  <translations name="gnome-recipes-data">
+    ${prefix}/share/locale
+  </translations>
+
+  <!-- Any additional data, like images, or Glade files -->
+  <data>
+    ${prefix}/share/gnome-recipes
+  </data>
+
+  <data>
+    ${prefix}/share/themes/Adwaita
+  </data>
+
+  <data>
+    ${prefix}/share/icons
+  </data>
+
+  <data dest="${bundle}/Contents/Resources">
+    ${project}/org.gnome.Recipes.icns
+  </data>
+
+  <!-- icon-theme icons="auto">
+    Adwaita
+  </icon-theme -->
+
+</app-bundle>
diff --git a/osx/org.gnome.Recipes.icns b/osx/org.gnome.Recipes.icns
new file mode 100644
index 0000000..60a4195
Binary files /dev/null and b/osx/org.gnome.Recipes.icns differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]