5a8f85e4382d7f6b3085e5f765e0d720bb853f72
[moonshot-ui.git] / mac / moonshot-ui.bundle
1 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
2 <app-bundle>
3
4   <meta>
5     <!-- Where to pick up the GTK+ installation, icon themes,
6          etc. Note that "${env:JHBUILD_PREFIX}" is evaluated to the
7          value of the environment variable JHBUILD_PREFIX. You can
8          define additional prefixes and refer to them in paths
9          throughout this file on the form "${prefix:name}". This is
10          useful for installing certain libraries or even the
11          application itself separately. Note that JHBUILD_PREFIX is
12          defined by jhbuild, so it you are not using jhbuild you can
13          either define your own or just hardcode the path here.
14     -->
15       <prefix name="default">${env:JHBUILD_PREFIX}</prefix>
16       <prefix name="installer-dir">${env:HOME}/moonshot/mac-client-installer/moonshot-ui/</prefix>
17
18     <!-- The project directory is the default location of the created
19          app. If you leave out the path, the current directory is
20          used. Note the usage of an environment variable here again.
21     -->
22     <destination overwrite="yes">${prefix:installer-dir}</destination>
23
24     <image>
25       <!-- Not implemented yet (DMG image). -->
26     </image>
27
28     <!-- Comment this out to keep the install names in binaries -->
29     <run-install-name-tool/>
30  
31     <!-- Optionally specify a launcher script to use. If the
32          application sets up everything needed itself, like
33          environment variable, linker paths, etc, a launcher script is
34          not needed. If the source path is left out, the default
35          script will be used.
36     -->
37     <launcher-script>${project}/launcher.sh</launcher-script >
38
39     <!-- Not implemented: Optional runtime, could be python or mono
40          for example.
41     --> 
42     <!-- runtime copy="yes">/usr/bin/python</runtime -->
43     <!-- Indicate the active gtk version to use. This is needed only
44          for gtk+-3.0 projects. -->
45     <gtk>gtk+-3.0</gtk>
46   </meta>
47
48   <!-- The special macro "${project}" refers to the directory where
49        this bundle file is located. The application name and bundle
50        identifier are taken from the plist file.
51   -->
52   <plist>${project}/moonshot-ui.plist</plist>
53
54     <main-binary>${prefix:installer-dir}bin/moonshot</main-binary>
55
56   <!-- Copy in GTK+ modules.  Note the ${gtkdir} macro, which expands
57        to the correct library subdirectory for the specified gtk
58        version.
59   -->
60         <!--      ${prefix}/lib/${gtkdir}/modules/*.so -->
61   <binary>
62           ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so
63   </binary>
64   <!-- Copy in GTK+ theme engines and print backends. Note the use of the
65        "${pkg:module:variable}" macro, which evaluates to a pkg-config
66        variable in the specified module. Note that any libraries that
67        binaries link to are also copied in automatically.  Note also
68        the included ${gtk} macro, which gets the correct package name
69        to get. -->
70
71   <binary>
72     ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
73   </binary>
74
75
76   <!-- Translation filenames, one for each program or library that you
77        want to copy in to the bundle. The "dest" attribute is
78        optional, as usual. Bundler will find all translations of that
79        library/program under the indicated directory and copy them.-->
80   <translations name="gtk30">
81     ${prefix}/share/locale
82   </translations>
83
84
85   <!-- Data to copy in, usually Glade/UI files, images, sounds files
86        etc. The destination inside the bundle can be specified if the
87        files should end up at a different location, by using the
88        "dest" property. The destination must then start with the macro
89        "${bundle}", which refers to the bundle root directory.
90   -->
91   <!-- data>
92     ${prefix}/share/moonshot-ui
93   </data -->
94
95   <!-- Copy in the themes data. You may want to trim this to save space 
96        in your bundle. -->
97   <data>
98     ${prefix}/share/themes
99   </data>
100
101   <!-- Copy icons. Note that the .icns file is an Apple format which
102        contains up to 4 sizes of icon. You can use
103        /Developer/Applications/Utilities/Icon Composer.app to import
104        artwork and create the file. >
105   <data dest="${bundle}/Contents/Resources">
106     ${project}/Giggle.icns
107   </data -->
108
109   <!-- This is where theme commands go. You can copy them in from your
110        theme of choice if they provide and example, or you can just
111        change the source path. -->
112
113   <data dest="${bundle}/Contents/Resources/etc/${gtkdir}/gtkrc">
114     ${project}/gtkrc
115   </data>
116
117   <!-- Icon themes to copy. The "icons" property can be either of
118        "auto", "all", or "none". All or none should be
119        self-explanatory, while auto means that the script will try to
120        figure out which icons are needed. This is done by getting all
121        the strings from all copied binaries, and matching them against
122        icon names. To be safe, you should use "all". "none" is useful
123        if you want just the index.theme file but no icons, mostly
124        needed for the "hicolor" base theme.
125   >-->
126   <icon-theme icons="all">
127     Gnome
128   </icon-theme>
129   <icon-theme icons="auto">
130     Tango
131   </icon-theme>
132 </app-bundle>