8234284: [dmg] Change DMG background image to TIFF

Reviewed-by: herrick, asemenyuk, erikj
This commit is contained in:
Alexander Matveev 2019-12-11 16:07:04 -05:00
parent 8b99e85fbc
commit 5799108494
5 changed files with 5 additions and 5 deletions

View File

@ -381,7 +381,7 @@ endif
################################################################################ ################################################################################
jdk.incubator.jpackage_COPY += .gif .png .txt .spec .script .prerm .preinst .postrm .postinst .list .sh \ jdk.incubator.jpackage_COPY += .gif .png .txt .spec .script .prerm .preinst .postrm .postinst .list .sh \
.desktop .copyright .control .plist .template .icns .scpt .entitlements .wxs .wxl .wxi .ico .bmp .desktop .copyright .control .plist .template .icns .scpt .entitlements .wxs .wxl .wxi .ico .bmp .tiff
jdk.incubator.jpackage_CLEAN += .properties jdk.incubator.jpackage_CLEAN += .properties

View File

@ -38,7 +38,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
private static final ResourceBundle I18N = ResourceBundle.getBundle( private static final ResourceBundle I18N = ResourceBundle.getBundle(
"jdk.incubator.jpackage.internal.resources.MacResources"); "jdk.incubator.jpackage.internal.resources.MacResources");
static final String DEFAULT_BACKGROUND_IMAGE="background_dmg.png"; static final String DEFAULT_BACKGROUND_IMAGE="background_dmg.tiff";
static final String DEFAULT_DMG_SETUP_SCRIPT="DMGsetup.scpt"; static final String DEFAULT_DMG_SETUP_SCRIPT="DMGsetup.scpt";
static final String TEMPLATE_BUNDLE_ICON = "java.icns"; static final String TEMPLATE_BUNDLE_ICON = "java.icns";
@ -112,7 +112,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
private File getConfig_VolumeBackground( private File getConfig_VolumeBackground(
Map<String, ? super Object> params) { Map<String, ? super Object> params) {
return new File(CONFIG_ROOT.fetchFrom(params), return new File(CONFIG_ROOT.fetchFrom(params),
APP_NAME.fetchFrom(params) + "-background.png"); APP_NAME.fetchFrom(params) + "-background.tiff");
} }
private File getConfig_VolumeIcon(Map<String, ? super Object> params) { private File getConfig_VolumeIcon(Map<String, ? super Object> params) {
@ -304,7 +304,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
File bgdir = new File(mountedRoot, ".background"); File bgdir = new File(mountedRoot, ".background");
bgdir.mkdirs(); bgdir.mkdirs();
IOUtils.copyFile(getConfig_VolumeBackground(params), IOUtils.copyFile(getConfig_VolumeBackground(params),
new File(bgdir, "background.png")); new File(bgdir, "background.tiff"));
// Indicate that we want a custom icon // Indicate that we want a custom icon
// NB: attributes of the root directory are ignored // NB: attributes of the root directory are ignored

View File

@ -11,7 +11,7 @@ tell application "Finder"
set theViewOptions to the icon view options of container window set theViewOptions to the icon view options of container window
set arrangement of theViewOptions to not arranged set arrangement of theViewOptions to not arranged
set icon size of theViewOptions to 128 set icon size of theViewOptions to 128
set background picture of theViewOptions to file ".background:background.png" set background picture of theViewOptions to file ".background:background.tiff"
-- Create alias for install location -- Create alias for install location
make new alias file at container window to DEPLOY_INSTALL_LOCATION with properties {name:"DEPLOY_INSTALL_NAME"} make new alias file at container window to DEPLOY_INSTALL_LOCATION with properties {name:"DEPLOY_INSTALL_NAME"}