Skip to content

Commit 5799108

Browse files
author
Alexander Matveev
committed
8234284: [dmg] Change DMG background image to TIFF
Reviewed-by: herrick, asemenyuk, erikj
1 parent 8b99e85 commit 5799108

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: make/CompileJavaModules.gmk

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ endif
381381
################################################################################
382382

383383
jdk.incubator.jpackage_COPY += .gif .png .txt .spec .script .prerm .preinst .postrm .postinst .list .sh \
384-
.desktop .copyright .control .plist .template .icns .scpt .entitlements .wxs .wxl .wxi .ico .bmp
384+
.desktop .copyright .control .plist .template .icns .scpt .entitlements .wxs .wxl .wxi .ico .bmp .tiff
385385

386386
jdk.incubator.jpackage_CLEAN += .properties
387387

Diff for: src/jdk.incubator.jpackage/macosx/classes/jdk/incubator/jpackage/internal/MacDmgBundler.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
3838
private static final ResourceBundle I18N = ResourceBundle.getBundle(
3939
"jdk.incubator.jpackage.internal.resources.MacResources");
4040

41-
static final String DEFAULT_BACKGROUND_IMAGE="background_dmg.png";
41+
static final String DEFAULT_BACKGROUND_IMAGE="background_dmg.tiff";
4242
static final String DEFAULT_DMG_SETUP_SCRIPT="DMGsetup.scpt";
4343
static final String TEMPLATE_BUNDLE_ICON = "java.icns";
4444

@@ -112,7 +112,7 @@ private File getConfig_VolumeScript(Map<String, ? super Object> params) {
112112
private File getConfig_VolumeBackground(
113113
Map<String, ? super Object> params) {
114114
return new File(CONFIG_ROOT.fetchFrom(params),
115-
APP_NAME.fetchFrom(params) + "-background.png");
115+
APP_NAME.fetchFrom(params) + "-background.tiff");
116116
}
117117

118118
private File getConfig_VolumeIcon(Map<String, ? super Object> params) {
@@ -304,7 +304,7 @@ private File buildDMG(
304304
File bgdir = new File(mountedRoot, ".background");
305305
bgdir.mkdirs();
306306
IOUtils.copyFile(getConfig_VolumeBackground(params),
307-
new File(bgdir, "background.png"));
307+
new File(bgdir, "background.tiff"));
308308

309309
// Indicate that we want a custom icon
310310
// NB: attributes of the root directory are ignored

Diff for: src/jdk.incubator.jpackage/macosx/classes/jdk/incubator/jpackage/internal/resources/DMGsetup.scpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tell application "Finder"
1111
set theViewOptions to the icon view options of container window
1212
set arrangement of theViewOptions to not arranged
1313
set icon size of theViewOptions to 128
14-
set background picture of theViewOptions to file ".background:background.png"
14+
set background picture of theViewOptions to file ".background:background.tiff"
1515

1616
-- Create alias for install location
1717
make new alias file at container window to DEPLOY_INSTALL_LOCATION with properties {name:"DEPLOY_INSTALL_NAME"}

0 commit comments

Comments
 (0)