public class MacDmgBundler extends MacBaseInstallerBundler
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
DEFAULT_BACKGROUND_IMAGE |
(package private) static java.lang.String |
DEFAULT_DMG_SETUP_SCRIPT |
(package private) static java.lang.String |
DEFAULT_LICENSE_PLIST |
private static java.lang.String |
hdiutil |
private static java.util.ResourceBundle |
I18N |
static BundlerParamInfo<java.lang.String> |
INSTALLER_SUFFIX |
static BundlerParamInfo<java.lang.Boolean> |
SIMPLE_DMG |
(package private) static java.lang.String |
TEMPLATE_BUNDLE_ICON |
APP_BUNDLER, APP_IMAGE_BUILD_ROOT, CONFIG_ROOT, DAEMON_BUNDLER, DAEMON_IMAGE_BUILD_ROOT, INSTALLER_NAME, MAC_APP_IMAGE, SIGNING_KEY_USER, SIGNING_KEYCHAIN
baseResourceLoader, BUNDLER_PREFIX, IMAGES_ROOT
Constructor and Description |
---|
MacDmgBundler() |
Modifier and Type | Method and Description |
---|---|
private java.io.File |
buildDMG(java.util.Map<java.lang.String,? super java.lang.Object> p,
java.io.File outdir) |
java.io.File |
bundle(java.util.Map<java.lang.String,? super java.lang.Object> params,
java.io.File outdir) |
protected void |
cleanupConfigFiles(java.util.Map<java.lang.String,? super java.lang.Object> params) |
java.io.File |
execute(java.util.Map<java.lang.String,? super java.lang.Object> params,
java.io.File outputParentDir)
Creates a bundle from existing content.
|
private java.lang.String |
findSetFileUtility() |
java.util.Collection<BundlerParamInfo<?>> |
getBundleParameters()
The parameters that this bundler uses to generate it's bundle.
|
private java.io.File |
getConfig_LicenseFile(java.util.Map<java.lang.String,? super java.lang.Object> params) |
private java.io.File |
getConfig_Script(java.util.Map<java.lang.String,? super java.lang.Object> params) |
private java.io.File |
getConfig_VolumeBackground(java.util.Map<java.lang.String,? super java.lang.Object> params) |
private java.io.File |
getConfig_VolumeIcon(java.util.Map<java.lang.String,? super java.lang.Object> params) |
private java.io.File |
getConfig_VolumeScript(java.util.Map<java.lang.String,? super java.lang.Object> params) |
java.lang.String |
getDescription() |
java.util.Collection<BundlerParamInfo<?>> |
getDMGBundleParameters() |
java.lang.String |
getID() |
java.lang.String |
getName() |
private boolean |
prepareConfigFiles(java.util.Map<java.lang.String,? super java.lang.Object> params) |
private void |
prepareDMGSetupScript(java.lang.String volumeName,
java.util.Map<java.lang.String,? super java.lang.Object> p) |
private void |
prepareLicense(java.util.Map<java.lang.String,? super java.lang.Object> params) |
boolean |
validate(java.util.Map<java.lang.String,? super java.lang.Object> params)
Determines if this bundler will execute with the given parameters.
|
findKey, getBundleType, getPredefinedImage, prepareAppBundle, prepareDaemonBundle, signAppBundle, signAppBundle, validateAppImageAndBundeler
fetchResource, fetchResource, preprocessTextResource, toString
private static final java.util.ResourceBundle I18N
static final java.lang.String DEFAULT_BACKGROUND_IMAGE
static final java.lang.String DEFAULT_DMG_SETUP_SCRIPT
static final java.lang.String TEMPLATE_BUNDLE_ICON
static final java.lang.String DEFAULT_LICENSE_PLIST
public static final BundlerParamInfo<java.lang.Boolean> SIMPLE_DMG
public static final BundlerParamInfo<java.lang.String> INSTALLER_SUFFIX
private static final java.lang.String hdiutil
public java.io.File bundle(java.util.Map<java.lang.String,? super java.lang.Object> params, java.io.File outdir)
protected void cleanupConfigFiles(java.util.Map<java.lang.String,? super java.lang.Object> params)
private void prepareDMGSetupScript(java.lang.String volumeName, java.util.Map<java.lang.String,? super java.lang.Object> p) throws java.io.IOException
java.io.IOException
private java.io.File getConfig_VolumeScript(java.util.Map<java.lang.String,? super java.lang.Object> params)
private java.io.File getConfig_VolumeBackground(java.util.Map<java.lang.String,? super java.lang.Object> params)
private java.io.File getConfig_VolumeIcon(java.util.Map<java.lang.String,? super java.lang.Object> params)
private java.io.File getConfig_LicenseFile(java.util.Map<java.lang.String,? super java.lang.Object> params)
private void prepareLicense(java.util.Map<java.lang.String,? super java.lang.Object> params)
private boolean prepareConfigFiles(java.util.Map<java.lang.String,? super java.lang.Object> params) throws java.io.IOException
java.io.IOException
private java.io.File getConfig_Script(java.util.Map<java.lang.String,? super java.lang.Object> params)
private java.lang.String findSetFileUtility()
private java.io.File buildDMG(java.util.Map<java.lang.String,? super java.lang.Object> p, java.io.File outdir) throws java.io.IOException
java.io.IOException
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getID()
public java.util.Collection<BundlerParamInfo<?>> getBundleParameters()
Bundler
getBundleParameters
in interface Bundler
getBundleParameters
in class MacBaseInstallerBundler
public java.util.Collection<BundlerParamInfo<?>> getDMGBundleParameters()
public boolean validate(java.util.Map<java.lang.String,? super java.lang.Object> params) throws UnsupportedPlatformException, ConfigException
Bundler
params
- The parameters to be validate. Validation may modify
the map, so if you are going to be using the same map
across multiple bundlers you should pass in a deep copy.UnsupportedPlatformException
- If the bundler cannot run on this
platform (i.e. creating mac apps on windows)ConfigException
- If the configuration params are incorrect. The
exception may contain advice on how to modify the params map
to make it valid.public java.io.File execute(java.util.Map<java.lang.String,? super java.lang.Object> params, java.io.File outputParentDir)
Bundler
Bundler.validate(java.util.Map)
date} returns true with the
parameters map, then you can expect a valid output. However if an exception
was thrown out of validate or it returned false then you should not
expect sensible results from this call. It may or may not return a value,
and it may or may not throw an exception. But any output should not
be considered valid or sane.params
- The parameters as specified by getBundleParameters.
Keyed by the id from the ParamInfo. Execution may
modify the map, so if you are going to be using the
same map across multiple bundlers you should pass
in a deep copy.outputParentDir
- The parent dir that the returned bundle will be placed in.