8234284: [dmg] Change DMG background image to TIFF
Reviewed-by: herrick, asemenyuk, erikj
This commit is contained in:
parent
8b99e85fbc
commit
5799108494
@ -381,7 +381,7 @@ endif
|
||||
################################################################################
|
||||
|
||||
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
|
||||
|
||||
|
@ -38,7 +38,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
|
||||
private static final ResourceBundle I18N = ResourceBundle.getBundle(
|
||||
"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 TEMPLATE_BUNDLE_ICON = "java.icns";
|
||||
|
||||
@ -112,7 +112,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
|
||||
private File getConfig_VolumeBackground(
|
||||
Map<String, ? super Object> 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) {
|
||||
@ -304,7 +304,7 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
|
||||
File bgdir = new File(mountedRoot, ".background");
|
||||
bgdir.mkdirs();
|
||||
IOUtils.copyFile(getConfig_VolumeBackground(params),
|
||||
new File(bgdir, "background.png"));
|
||||
new File(bgdir, "background.tiff"));
|
||||
|
||||
// Indicate that we want a custom icon
|
||||
// NB: attributes of the root directory are ignored
|
||||
|
@ -11,7 +11,7 @@ tell application "Finder"
|
||||
set theViewOptions to the icon view options of container window
|
||||
set arrangement of theViewOptions to not arranged
|
||||
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
|
||||
make new alias file at container window to DEPLOY_INSTALL_LOCATION with properties {name:"DEPLOY_INSTALL_NAME"}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
Loading…
Reference in New Issue
Block a user