App bundle is now built in install-dir
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>
Sun, 1 Jan 2012 14:30:14 +0000 (14:30 +0000)
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>
Sun, 1 Jan 2012 14:38:03 +0000 (14:38 +0000)
Makefile.am
mac/moonshot-ui.bundle

index db477b7..4af7a27 100644 (file)
@@ -234,8 +234,8 @@ icons:
 ## gtk-app-bundler must be installed
 app-bundle:
        gtk-mac-bundler ./mac/moonshot-ui.bundle
-       mkdir -p ${HOME}/moonshot/mac-client-installer/moonshot-ui/
-       cp -R ./mac/moonshot-ui.app ${HOME}/moonshot/mac-client-installer/moonshot-ui/
+
+moonshot-ui/
 
 ## 3: Installer Package
 installer:
index 2bcbe1c..ae0b2e7 100644 (file)
          defined by jhbuild, so it you are not using jhbuild you can
          either define your own or just hardcode the path here.
     -->
-    <prefix name="default">${env:JHBUILD_PREFIX}</prefix>
+      <prefix name="default">${env:JHBUILD_PREFIX}</prefix>
+      <prefix name="installer-dir">${env:HOME}/moonshot/mac-client-installer/moonshot-ui/</prefix>
 
     <!-- The project directory is the default location of the created
          app. If you leave out the path, the current directory is
          used. Note the usage of an environment variable here again.
     -->
-    <destination overwrite="yes"></destination>
+    <destination overwrite="yes">${prefix:installer-dir}</destination>
 
     <image>
       <!-- Not implemented yet (DMG image). -->
@@ -50,7 +51,7 @@
   -->
   <plist>${project}/moonshot-ui.plist</plist>
 
-  <main-binary>${prefix}/bin/moonshot</main-binary>
+    <main-binary>${prefix:installer-dir}bin/moonshot</main-binary>
 
   <!-- Copy in GTK+ modules.  Note the ${gtkdir} macro, which expands
        to the correct library subdirectory for the specified gtk