[libgda] Improved GdaBrowser packaging for MacOSX as a bundle



commit 9420c07bab6efab46b0bd3ddd6fda56064c22071
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sat May 29 18:11:25 2010 +0200

    Improved GdaBrowser packaging for MacOSX as a bundle

 installers/MacOSX/.gitignore                       |    1 +
 .../MacOSX/gda-browser/Info-gda-browser.plist      |    6 +++---
 installers/MacOSX/gda-browser/README               |   11 ++++++-----
 installers/MacOSX/gda-browser/background.jpg       |  Bin 0 -> 12087 bytes
 installers/MacOSX/gda-browser/background.xcf       |  Bin 0 -> 141651 bytes
 installers/MacOSX/gda-browser/build/Applications   |    1 +
 installers/MacOSX/gda-browser/create_bundle.sh     |   15 +++++++++++++++
 installers/MacOSX/gda-browser/create_dmg.sh        |    7 +++++++
 installers/MacOSX/gda-browser/gda-browser.bundle   |    2 +-
 9 files changed, 34 insertions(+), 9 deletions(-)
---
diff --git a/installers/MacOSX/.gitignore b/installers/MacOSX/.gitignore
new file mode 100644
index 0000000..72f1563
--- /dev/null
+++ b/installers/MacOSX/.gitignore
@@ -0,0 +1 @@
+._*
\ No newline at end of file
diff --git a/installers/MacOSX/gda-browser/Info-gda-browser.plist b/installers/MacOSX/gda-browser/Info-gda-browser.plist
index 6168b6c..3687ad0 100644
--- a/installers/MacOSX/gda-browser/Info-gda-browser.plist
+++ b/installers/MacOSX/gda-browser/Info-gda-browser.plist
@@ -7,7 +7,7 @@
     <key>CFBundleExecutable</key>
     <string>GdaBrowser</string>
     <key>CFBundleGetInfoString</key>
-    <string>4.1.6, (C) 1997-2010 The Gnome-Db Team http://www.gnome-db.org</string>
+    <string>4.1.7, (C) 1997-2010 The Gnome-Db Team http://www.gnome-db.org</string>
     <key>CFBundleIconFile</key>
     <string>GdaBrowser.icns</string>
     <key>CFBundleIdentifier</key>
@@ -17,11 +17,11 @@
     <key>CFBundlePackageType</key>
     <string>APPL</string>
     <key>CFBundleShortVersionString</key>
-    <string>4.1.6</string>
+    <string>4.1.7</string>
     <key>CFBundleSignature</key>
     <string>????</string>
     <key>CFBundleVersion</key>
-    <string>4.1.6</string>
+    <string>4.1.7</string>
     <key>NSHumanReadableCopyright</key>
     <string>Copyright 1997 - 2010 The Gnome-Db Team, GNU General Public License.</string>
     <key>LSMinimumSystemVersion</key>
diff --git a/installers/MacOSX/gda-browser/README b/installers/MacOSX/gda-browser/README
index f5d71ca..a318b83 100644
--- a/installers/MacOSX/gda-browser/README
+++ b/installers/MacOSX/gda-browser/README
@@ -6,8 +6,9 @@ files using the instructions from http://gtk-osx.sourceforge.net
 and specifically the BUILD (http://sourceforge.net/apps/trac/gtk-osx/wiki/Build) and
 BUNDLE (http://sourceforge.net/apps/trac/gtk-osx/wiki/Bundle) pages.
 
-Follow these steps to create a bundle (GdaBrowser.app) on the desktop (~/Desktop):
-- set the PREFIX environment variable to the location where Libgda has been installed (the same
-  as the --prefix option passed to the configure script)
-- from this directory, run:
-  ige-mac-bundler gda-browser.bundle
\ No newline at end of file
+To create a bundle (GdaBrowser.app) in the build/ directory, use:
+./create_bundle.sh
+
+To create a DMG (GdaBrowser.dmg) in the current directory, use:
+./create_dmg.sh
+
diff --git a/installers/MacOSX/gda-browser/background.jpg b/installers/MacOSX/gda-browser/background.jpg
new file mode 100644
index 0000000..eb384ef
Binary files /dev/null and b/installers/MacOSX/gda-browser/background.jpg differ
diff --git a/installers/MacOSX/gda-browser/background.xcf b/installers/MacOSX/gda-browser/background.xcf
new file mode 100644
index 0000000..e8ef000
Binary files /dev/null and b/installers/MacOSX/gda-browser/background.xcf differ
diff --git a/installers/MacOSX/gda-browser/build/Applications b/installers/MacOSX/gda-browser/build/Applications
new file mode 120000
index 0000000..bd2d47f
--- /dev/null
+++ b/installers/MacOSX/gda-browser/build/Applications
@@ -0,0 +1 @@
+/Applications
\ No newline at end of file
diff --git a/installers/MacOSX/gda-browser/create_bundle.sh b/installers/MacOSX/gda-browser/create_bundle.sh
new file mode 100755
index 0000000..75fce67
--- /dev/null
+++ b/installers/MacOSX/gda-browser/create_bundle.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ -n "${PREFIX+x}" ]
+then
+    echo "The PREFIX environment variable is not set, using /local"
+    export PREFIX=/local
+fi
+
+if ! [ -f gda-browser.bundle ]
+then
+    echo "This script must be executed in the directory which contains the gda-browser.bundle file"
+    exit 1
+fi
+
+ige-mac-bundler gda-browser.bundle
diff --git a/installers/MacOSX/gda-browser/create_dmg.sh b/installers/MacOSX/gda-browser/create_dmg.sh
new file mode 100755
index 0000000..feef01c
--- /dev/null
+++ b/installers/MacOSX/gda-browser/create_dmg.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+dmgfile=GdaBrowser.dmg
+current=`pwd`
+rm -f ${dmgfile}
+cd ../CreateDMG
+./create-dmg --window-size 500 300 --background ${current}/background.jpg --icon-size 96 --volname GdaBrowser --icon "Applications" 380 150 --icon GdaBrowser 120 150 ${current}/${dmgfile} ${current}/build/
diff --git a/installers/MacOSX/gda-browser/gda-browser.bundle b/installers/MacOSX/gda-browser/gda-browser.bundle
index 645eab5..9b5a0dc 100644
--- a/installers/MacOSX/gda-browser/gda-browser.bundle
+++ b/installers/MacOSX/gda-browser/gda-browser.bundle
@@ -19,7 +19,7 @@
          app. If you leave out the path, the current directory is
          used. Note the usage of an environment variable here again.
     -->
-    <destination overwrite="yes">${env:HOME}/Desktop</destination>
+    <destination overwrite="yes">${project}/build</destination>
 
     <image>
       <!-- Not implemented yet (DMG image). -->



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