Description
This tasks allows to bundle all the parts of an application bundle.
Parameters
| Attribute | Type | Description | Required |
|---|---|---|---|
| name | String |
The name of the application. | True |
| plist | File |
The path to the Info.plist file. |
True |
| todir | Directory |
The destination directory. | True |
| native | Boolean |
If true, the runtime is not copied and will be generated later. | False |
| target-os | MacOSVersion |
The target OS version. Valid values are MacOS105, MacOS106, MacOS107 or MacOS108. |
True |
Nested Elements
Usage
Bundling a managed application:
<!-- Create the application bundle -->
<bundle-app name="${app.name}"
target-os="MacOS106"
plist="${build.dir}/Info.plist"
native="false"
todir="${dist.dir}">
<!-- Copy icon -->
<copy-in-resources basedir=".">
<include name="Monobjc.icns"/>
</copy-in-resources>
<!-- Copy resources and assemblies -->
<copy-in-resources basedir="${build.dir}">
<include name="${app.name}.exe"/>
<include name="*.lproj/**"/>
</copy-in-resources>
</bundle-app>
Bundling a native application:
<!-- Create the application bundle -->
<bundle-app name="${app.name}"
target-os="MacOS106"
plist="${build.dir}/Info.plist"
native="true"
todir="${dist.dir}">
<!-- Copy binaries -->
<copy-in-macos basedir="${build.dir}">
<include name="${app.name}"/>
<include name="*.dylib"/>
</copy-in-macos>
<!-- Copy icon -->
<copy-in-resources basedir=".">
<include name="Monobjc.icns"/>
</copy-in-resources>
<!-- Copy resources -->
<copy-in-resources basedir="${build.dir}">
<include name="*.lproj/**"/>
</copy-in-resources>
</bundle-app>