public class jdk.jpackage.internal.MacDmgBundler extends jdk.jpackage.internal.MacBaseInstallerBundler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jpackage.internal.MacDmgBundler
super_class: jdk.jpackage.internal.MacBaseInstallerBundler
{
private static final java.util.ResourceBundle I18N;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final java.lang.String DEFAULT_BACKGROUND_IMAGE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "background_dmg.tiff"
static final java.lang.String BACKGROUND_IMAGE_FOLDER;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: ".background"
static final java.lang.String BACKGROUND_IMAGE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "background.tiff"
static final java.lang.String DEFAULT_DMG_SETUP_SCRIPT;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "DMGsetup.scpt"
static final java.lang.String TEMPLATE_BUNDLE_ICON;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "java.icns"
static final java.lang.String DEFAULT_LICENSE_PLIST;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "lic_template.plist"
public static final jdk.jpackage.internal.BundlerParamInfo<java.lang.String> INSTALLER_SUFFIX;
descriptor: Ljdk/jpackage/internal/BundlerParamInfo;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljdk/jpackage/internal/BundlerParamInfo<Ljava/lang/String;>;
private static final java.lang.String hdiutil;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/usr/bin/hdiutil"
public static final java.lang.String[] required;
descriptor: [Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: ldc "jdk.jpackage.internal.resources.MacResources"
1: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
2: new jdk.jpackage.internal.StandardBundlerParam
dup
3: ldc "mac.dmg.installerName.suffix"
4: ldc Ljava/lang/String;
5: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/jpackage/internal/MacDmgBundler.lambda$0(Ljava/util/Map;)Ljava/lang/String; (6)
(Ljava/util/Map;)Ljava/lang/String;
6: invokedynamic apply()Ljava/util/function/BiFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
jdk/jpackage/internal/MacDmgBundler.lambda$1(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String; (6)
(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;
7: invokespecial jdk.jpackage.internal.StandardBundlerParam.<init>:(Ljava/lang/String;Ljava/lang/Class;Ljava/util/function/Function;Ljava/util/function/BiFunction;)V
8: putstatic jdk.jpackage.internal.MacDmgBundler.INSTALLER_SUFFIX:Ljdk/jpackage/internal/BundlerParamInfo;
9: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
ldc "/usr/bin/osascript"
aastore
10: putstatic jdk.jpackage.internal.MacDmgBundler.required:[Ljava/lang/String;
11: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.jpackage.internal.MacBaseInstallerBundler.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/MacDmgBundler;
public java.nio.file.Path bundle(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "message.building-dmg"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
1: getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
aastore
2: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
3: aload 2
invokestatic jdk.jpackage.internal.IOUtils.writableOutputDir:(Ljava/nio/file/Path;)V
4: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.prepareAppBundle:(Ljava/util/Map;)Ljava/nio/file/Path;
astore 3
start local 3 5: aload 3
ifnull 11
aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.prepareConfigFiles:(Ljava/util/Map;)Z
ifeq 11
6: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_Script:(Ljava/util/Map;)Ljava/nio/file/Path;
astore 4
start local 4 7: aload 4
invokestatic jdk.jpackage.internal.IOUtils.exists:(Ljava/nio/file/Path;)Z
ifeq 9
8: ldc "bash"
aload 4
invokestatic jdk.jpackage.internal.IOUtils.run:(Ljava/lang/String;Ljava/nio/file/Path;)V
9: StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
aload 0
aload 1
aload 3
aload 2
invokevirtual jdk.jpackage.internal.MacDmgBundler.buildDMG:(Ljava/util/Map;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
10: areturn
end local 4 11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 12: StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path
StackMap stack: java.lang.Exception
astore 3
start local 3 13: aload 3
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
14: new jdk.jpackage.internal.PackagerException
dup
aload 3
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 15 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 15 2 outdir Ljava/nio/file/Path;
5 12 3 appLocation Ljava/nio/file/Path;
7 11 4 configScript Ljava/nio/file/Path;
13 15 3 ex Ljava/lang/Exception;
Exception table:
from to target type
4 10 12 Class java.io.IOException
4 10 12 Class jdk.jpackage.internal.PackagerException
Exceptions:
throws jdk.jpackage.internal.PackagerException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
outdir
private void prepareDMGSetupScript(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_VolumeScript:(Ljava/util/Map;)Ljava/nio/file/Path;
astore 2
start local 2 1: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "message.preparing-dmg-setup"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
2: aload 2
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
3: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
4: getstatic jdk.jpackage.internal.MacDmgBundler.IMAGES_ROOT:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 3
start local 3 5: aload 3
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 7
6: aload 3
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
7: StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface java.nio.file.Path.toRealPath:([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
astore 4
start local 4 8: aload 4
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 9: new java.lang.StringBuilder
dup
aload 5
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
invokevirtual java.net.URI.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 10: aload 4
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
iconst_3
anewarray java.lang.String
dup
iconst_0
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
aastore
dup
iconst_1
11: ldc ".background"
aastore
dup
iconst_2
ldc "background.tiff"
aastore
12: invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 7
start local 7 13: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 8
start local 8 14: aload 8
ldc "DEPLOY_VOLUME_URL"
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: aload 8
ldc "DEPLOY_BG_FILE"
aload 7
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: aload 8
ldc "DEPLOY_VOLUME_PATH"
aload 5
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: aload 8
ldc "DEPLOY_APPLICATION_NAME"
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
18: aload 8
ldc "DEPLOY_INSTALL_LOCATION"
aload 1
invokestatic jdk.jpackage.internal.MacDmgBundler.getInstallDir:(Ljava/util/Map;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: ldc "DMGsetup.scpt"
aload 1
invokestatic jdk.jpackage.internal.OverridableResource.createResource:(Ljava/lang/String;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
20: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "resource.dmg-setup-script"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jpackage.internal.OverridableResource.setCategory:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
21: aload 8
invokevirtual jdk.jpackage.internal.OverridableResource.setSubstitutionData:(Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
22: aload 2
invokevirtual jdk.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
pop
23: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 24 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 24 2 dmgSetup Ljava/nio/file/Path;
5 24 3 imageDir Ljava/nio/file/Path;
8 24 4 rootPath Ljava/nio/file/Path;
9 24 5 volumePath Ljava/nio/file/Path;
10 24 6 volumeUrl Ljava/lang/String;
13 24 7 bgFile Ljava/nio/file/Path;
14 24 8 data Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
params
private java.nio.file.Path getConfig_VolumeScript(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.jpackage.internal.StandardBundlerParam.CONFIG_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
1: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-dmg-setup.scpt"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 3 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
private java.nio.file.Path getConfig_VolumeBackground(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.jpackage.internal.StandardBundlerParam.CONFIG_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
1: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-background.tiff"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 3 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
private java.nio.file.Path getConfig_VolumeIcon(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.jpackage.internal.StandardBundlerParam.CONFIG_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
1: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-volume.icns"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 3 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
private java.nio.file.Path getConfig_LicenseFile(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.jpackage.internal.StandardBundlerParam.CONFIG_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
1: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-license.plist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 3 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
private void prepareLicense(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: getstatic jdk.jpackage.internal.StandardBundlerParam.LICENSE_FILE:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: java.lang.String
StackMap stack:
aload 2
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 4: aload 3
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
5: astore 4
start local 4 6: invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 4
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
7: astore 5
start local 5 8: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 6
start local 6 9: aload 6
ldc "APPLICATION_LICENSE_TEXT"
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: ldc "lic_template.plist"
aload 1
invokestatic jdk.jpackage.internal.OverridableResource.createResource:(Ljava/lang/String;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
11: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "resource.license-setup"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jpackage.internal.OverridableResource.setCategory:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
12: aload 6
invokevirtual jdk.jpackage.internal.OverridableResource.setSubstitutionData:(Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
13: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_LicenseFile:(Ljava/util/Map;)Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
pop
end local 6 end local 5 end local 4 end local 3 end local 2 14: goto 17
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map
StackMap stack: java.io.IOException
15: astore 2
start local 2 16: aload 2
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
end local 2 17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 18 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 14 2 licFileStr Ljava/lang/String;
4 14 3 licFile Ljava/nio/file/Path;
6 14 4 licenseContentOriginal [B
8 14 5 licenseInBase64 Ljava/lang/String;
9 14 6 data Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
16 17 2 ex Ljava/io/IOException;
Exception table:
from to target type
0 2 15 Class java.io.IOException
3 14 15 Class java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
params
private boolean prepareConfigFiles(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "background_dmg.tiff"
aload 1
invokestatic jdk.jpackage.internal.OverridableResource.createResource:(Ljava/lang/String;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
1: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "resource.dmg-background"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jpackage.internal.OverridableResource.setCategory:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
2: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_VolumeBackground:(Ljava/util/Map;)Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
pop
3: ldc "java.icns"
aload 1
invokestatic jdk.jpackage.internal.OverridableResource.createResource:(Ljava/lang/String;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
4: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "resource.volume-icon"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jpackage.internal.OverridableResource.setCategory:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
5: getstatic jdk.jpackage.internal.MacAppImageBuilder.ICON_ICNS:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
invokevirtual jdk.jpackage.internal.OverridableResource.setExternal:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource;
6: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_VolumeIcon:(Ljava/util/Map;)Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
pop
7: aconst_null
aload 1
invokestatic jdk.jpackage.internal.OverridableResource.createResource:(Ljava/lang/String;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
8: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "resource.post-install-script"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.jpackage.internal.OverridableResource.setCategory:(Ljava/lang/String;)Ljdk/jpackage/internal/OverridableResource;
9: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_Script:(Ljava/util/Map;)Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
pop
10: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.prepareLicense:(Ljava/util/Map;)V
11: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.prepareDMGSetupScript:(Ljava/util/Map;)V
12: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 13 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Z
MethodParameters:
Name Flags
params
private java.nio.file.Path getConfig_Script(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.jpackage.internal.StandardBundlerParam.CONFIG_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
1: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-post-image.sh"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 3 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
private java.lang.String findSetFileUtility();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=1
start local 0 0: iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "/Developer/Tools/SetFile"
aastore
dup
iconst_1
1: ldc "/usr/bin/SetFile"
aastore
dup
iconst_2
ldc "/Developer/usr/bin/SetFile"
aastore
2: astore 1
start local 1 3: aconst_null
astore 2
start local 2 4: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 11
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.lang.String[] java.lang.String top int int java.lang.String[]
StackMap stack:
5: aload 6
iload 4
aaload
astore 3
start local 3 6: aload 3
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 7
start local 7 7: aload 7
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 10
aload 7
invokestatic java.nio.file.Files.isExecutable:(Ljava/nio/file/Path;)Z
ifeq 10
8: aload 3
astore 2
9: goto 12
end local 7 end local 3 10: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 5
if_icmplt 5
12: StackMap locals: jdk.jpackage.internal.MacDmgBundler java.lang.String[] java.lang.String
StackMap stack:
aload 2
ifnull 21
13: new java.lang.ProcessBuilder
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
dup
iconst_1
ldc "-h"
aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 3
start local 3 14: aload 3
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
astore 4
start local 4 15: aload 4
invokevirtual java.lang.Process.waitFor:()I
istore 5
start local 5 16: iload 5
ifne 20
17: aload 2
18: areturn
end local 5 end local 4 end local 3 19: StackMap locals:
StackMap stack: java.lang.Exception
pop
20: StackMap locals:
StackMap stack:
aconst_null
areturn
21: StackMap locals:
StackMap stack:
new java.lang.ProcessBuilder
dup
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "/usr/bin/xcrun"
aastore
dup
iconst_1
ldc "-find"
aastore
dup
iconst_2
ldc "SetFile"
aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 3
start local 3 22: aload 3
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
astore 4
start local 4 23: new java.io.InputStreamReader
dup
aload 4
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
astore 5
start local 5 24: new java.io.BufferedReader
dup
aload 5
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 6
start local 6 25: aload 6
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 7
start local 7 26: aload 7
ifnull 32
27: aload 7
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 8
start local 8 28: aload 8
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 32
aload 8
invokestatic java.nio.file.Files.isExecutable:(Ljava/nio/file/Path;)Z
ifeq 32
29: aload 8
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
30: areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 31: StackMap locals:
StackMap stack: java.io.IOException
pop
32: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Ljdk/jpackage/internal/MacDmgBundler;
3 33 1 typicalPaths [Ljava/lang/String;
4 33 2 setFilePath Ljava/lang/String;
6 10 3 path Ljava/lang/String;
7 10 7 f Ljava/nio/file/Path;
14 19 3 pb Ljava/lang/ProcessBuilder;
15 19 4 p Ljava/lang/Process;
16 19 5 code I
22 31 3 pb Ljava/lang/ProcessBuilder;
23 31 4 p Ljava/lang/Process;
24 31 5 isr Ljava/io/InputStreamReader;
25 31 6 br Ljava/io/BufferedReader;
26 31 7 lineRead Ljava/lang/String;
28 31 8 f Ljava/nio/file/Path;
Exception table:
from to target type
13 18 19 Class java.lang.Exception
21 30 31 Class java.io.IOException
private java.nio.file.Path buildDMG(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=19, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: getstatic jdk.jpackage.internal.MacDmgBundler.IMAGES_ROOT:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 5
start local 5 2: aload 5
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 4
3: aload 5
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
4: StackMap locals: int java.nio.file.Path
StackMap stack:
aload 5
new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-tmp.dmg"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 6
start local 6 5: aload 3
new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.MacDmgBundler.MAC_INSTALLER_NAME:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: getstatic jdk.jpackage.internal.MacDmgBundler.INSTALLER_SUFFIX:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".dmg"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 7
start local 7 8: aload 0
getfield jdk.jpackage.internal.MacDmgBundler.APP_IMAGE_TEMP_ROOT:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 8
start local 8 9: aload 1
invokestatic jdk.jpackage.internal.StandardBundlerParam.getPredefinedAppImage:(Ljava/util/Map;)Ljava/nio/file/Path;
astore 9
start local 9 10: aload 9
ifnull 13
11: aload 9
astore 8
12: goto 27
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path
StackMap stack:
13: aload 1
invokestatic jdk.jpackage.internal.StandardBundlerParam.isRuntimeInstaller:(Ljava/util/Map;)Z
ifeq 27
14: getstatic jdk.jpackage.internal.StandardBundlerParam.TEMP_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
15: ldc "root-"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
16: invokestatic java.nio.file.Files.createTempDirectory:(Ljava/nio/file/Path;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
astore 10
start local 10 17: aload 2
ldc "Contents/Home"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 11
start local 11 18: aload 11
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 19
aload 11
goto 20
StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
19: aload 2
StackMap locals:
StackMap stack: java.nio.file.Path
20: astore 12
start local 12 21: aload 10
22: getstatic jdk.jpackage.internal.MacAppImageBuilder.MAC_CF_BUNDLE_IDENTIFIER:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
invokevirtual jdk.jpackage.internal.BundlerParamInfo.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
23: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 13
start local 13 24: aload 13
ldc "Contents/Home"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 14
start local 14 25: aload 12
aload 14
invokestatic jdk.jpackage.internal.IOUtils.copyRecursive:(Ljava/nio/file/Path;Ljava/nio/file/Path;)V
26: aload 10
astore 8
end local 14 end local 13 end local 12 end local 11 end local 10 27: StackMap locals:
StackMap stack:
getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
28: ldc "message.creating-dmg-file"
29: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
30: aload 7
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
aastore
31: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
32: aload 6
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
pop
33: aload 7
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
pop
34: goto 41
StackMap locals:
StackMap stack: java.io.IOException
35: pop
36: new java.io.IOException
dup
getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
37: ldc "message.dmg-cannot-be-overwritten"
38: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
39: aload 7
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
aastore
40: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
41: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
42: aload 7
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
43: getstatic jdk.jpackage.internal.StandardBundlerParam.VERBOSE:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 45
44: ldc "-verbose"
goto 46
StackMap locals:
StackMap stack:
45: ldc "-quiet"
46: StackMap locals:
StackMap stack: java.lang.String
astore 10
start local 10 47: new java.lang.ProcessBuilder
dup
bipush 13
anewarray java.lang.String
dup
iconst_0
48: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
49: ldc "create"
aastore
dup
iconst_2
50: aload 10
aastore
dup
iconst_3
51: ldc "-srcfolder"
aastore
dup
iconst_4
aload 8
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
dup
iconst_5
52: ldc "-volname"
aastore
dup
bipush 6
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
aastore
dup
bipush 7
53: ldc "-ov"
aastore
dup
bipush 8
aload 6
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
dup
bipush 9
54: ldc "-fs"
aastore
dup
bipush 10
ldc "HFS+"
aastore
dup
bipush 11
55: ldc "-format"
aastore
dup
bipush 12
ldc "UDRW"
56: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
start local 11 57: aload 11
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
58: goto 74
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder
StackMap stack: java.io.IOException
59: astore 12
start local 12 60: aload 12
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
61: iconst_1
istore 4
62: new jdk.jpackage.internal.PathGroup
dup
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aload 8
invokestatic java.util.Map.of:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
invokespecial jdk.jpackage.internal.PathGroup.<init>:(Ljava/util/Map;)V
invokevirtual jdk.jpackage.internal.PathGroup.sizeInBytes:()J
lstore 13
start local 13 63: lload 13
ldc 52428800
ladd
lstore 13
64: new java.lang.ProcessBuilder
dup
bipush 11
anewarray java.lang.String
dup
iconst_0
65: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
66: ldc "create"
aastore
dup
iconst_2
67: aload 10
aastore
dup
iconst_3
68: ldc "-size"
aastore
dup
iconst_4
lload 13
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
aastore
dup
iconst_5
69: ldc "-volname"
aastore
dup
bipush 6
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
aastore
dup
bipush 7
70: ldc "-ov"
aastore
dup
bipush 8
aload 6
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
dup
bipush 9
71: ldc "-fs"
aastore
dup
bipush 10
ldc "HFS+"
72: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
73: aload 11
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
end local 13 end local 12 74: StackMap locals:
StackMap stack:
new java.lang.ProcessBuilder
dup
bipush 6
anewarray java.lang.String
dup
iconst_0
75: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
76: ldc "attach"
aastore
dup
iconst_2
77: aload 6
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
dup
iconst_3
78: aload 10
aastore
dup
iconst_4
79: ldc "-mountroot"
aastore
dup
iconst_5
aload 5
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
80: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
81: aload 11
iconst_0
aconst_null
iconst_1
ldc -1
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;ZJ)V
82: aload 5
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 12
start local 12 83: iload 4
ifeq 92
84: aload 8
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc ".app"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 91
85: aload 12
86: aload 8
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
87: astore 13
start local 13 88: aload 13
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
89: aload 8
aload 13
invokestatic jdk.jpackage.internal.IOUtils.copyRecursive:(Ljava/nio/file/Path;Ljava/nio/file/Path;)V
end local 13 90: goto 92
91: StackMap locals: java.nio.file.Path
StackMap stack:
aload 8
aload 12
invokestatic jdk.jpackage.internal.IOUtils.copyRecursive:(Ljava/nio/file/Path;Ljava/nio/file/Path;)V
92: StackMap locals:
StackMap stack:
aload 12
ldc ".background"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 13
start local 13 93: aload 13
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
94: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_VolumeBackground:(Ljava/util/Map;)Ljava/nio/file/Path;
95: aload 13
ldc "background.tiff"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
96: invokestatic jdk.jpackage.internal.IOUtils.copyFile:(Ljava/nio/file/Path;Ljava/nio/file/Path;)V
97: new java.lang.ProcessBuilder
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "/usr/bin/osascript"
aastore
dup
iconst_1
98: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_VolumeScript:(Ljava/util/Map;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
99: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
100: aload 11
ldc 180
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;J)V
101: goto 104
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path java.nio.file.Path
StackMap stack: java.io.IOException
102: astore 14
start local 14 103: aload 14
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
end local 14 104: StackMap locals:
StackMap stack:
aload 12
ldc ".VolumeIcon.icns"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 14
start local 14 105: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_VolumeIcon:(Ljava/util/Map;)Ljava/nio/file/Path;
106: aload 14
107: invokestatic jdk.jpackage.internal.IOUtils.copyFile:(Ljava/nio/file/Path;Ljava/nio/file/Path;)V
108: aload 0
invokevirtual jdk.jpackage.internal.MacDmgBundler.findSetFileUtility:()Ljava/lang/String;
astore 15
start local 15 109: aload 15
ifnull 129
110: aload 14
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
iconst_1
invokevirtual java.io.File.setWritable:(Z)Z
pop
111: new java.lang.ProcessBuilder
dup
iconst_4
anewarray java.lang.String
dup
iconst_0
112: aload 15
aastore
dup
iconst_1
113: ldc "-c"
aastore
dup
iconst_2
ldc "icnC"
aastore
dup
iconst_3
114: aload 14
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
115: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
116: aload 11
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
117: aload 14
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.setReadOnly:()Z
pop
118: new java.lang.ProcessBuilder
dup
iconst_4
anewarray java.lang.String
dup
iconst_0
119: aload 15
aastore
dup
iconst_1
120: ldc "-a"
aastore
dup
iconst_2
ldc "C"
aastore
dup
iconst_3
121: aload 12
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
122: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
123: aload 11
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
124: goto 155
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String
StackMap stack: java.io.IOException
125: astore 16
start local 16 126: aload 16
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.error:(Ljava/lang/String;)V
127: ldc "Cannot enable custom icon using SetFile utility"
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
end local 16 128: goto 155
129: StackMap locals:
StackMap stack:
getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "message.setfile.dmg"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
end local 15 end local 14 end local 13 130: goto 155
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path
StackMap stack: java.lang.Throwable
131: astore 17
132: new java.lang.ProcessBuilder
dup
iconst_4
anewarray java.lang.String
dup
iconst_0
133: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
134: ldc "detach"
aastore
dup
iconst_2
135: aload 10
aastore
dup
iconst_3
136: aload 12
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
137: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
138: new jdk.jpackage.internal.RetryExecutor
dup
invokespecial jdk.jpackage.internal.RetryExecutor.<init>:()V
astore 18
start local 18 139: aload 18
aload 12
aload 18
invokedynamic accept(Ljava/nio/file/Path;Ljdk/jpackage/internal/RetryExecutor;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/jpackage/internal/MacDmgBundler.lambda$2(Ljava/nio/file/Path;Ljdk/jpackage/internal/RetryExecutor;Ljdk/jpackage/internal/Executor;)V (6)
(Ljdk/jpackage/internal/Executor;)V
invokevirtual jdk.jpackage.internal.RetryExecutor.setExecutorInitializer:(Ljava/util/function/Consumer;)Ljdk/jpackage/internal/RetryExecutor;
pop
140: aload 18
bipush 10
invokevirtual jdk.jpackage.internal.RetryExecutor.setMaxAttemptsCount:(I)Ljdk/jpackage/internal/RetryExecutor;
sipush 6000
invokevirtual jdk.jpackage.internal.RetryExecutor.setAttemptTimeoutMillis:(I)Ljdk/jpackage/internal/RetryExecutor;
141: aload 11
invokevirtual jdk.jpackage.internal.RetryExecutor.execute:(Ljava/lang/ProcessBuilder;)V
142: goto 154
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path top top top top java.lang.Throwable jdk.jpackage.internal.RetryExecutor
StackMap stack: java.io.IOException
143: pop
144: aload 18
invokevirtual jdk.jpackage.internal.RetryExecutor.isAborted:()Z
ifne 154
145: aload 12
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 154
146: new java.lang.ProcessBuilder
dup
iconst_5
anewarray java.lang.String
dup
iconst_0
147: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
148: ldc "detach"
aastore
dup
iconst_2
149: ldc "-force"
aastore
dup
iconst_3
150: aload 10
aastore
dup
iconst_4
151: aload 12
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
152: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
153: aload 11
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
end local 18 154: StackMap locals:
StackMap stack:
aload 17
athrow
155: StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path
StackMap stack:
new java.lang.ProcessBuilder
dup
iconst_4
anewarray java.lang.String
dup
iconst_0
156: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
157: ldc "detach"
aastore
dup
iconst_2
158: aload 10
aastore
dup
iconst_3
159: aload 12
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
160: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
161: new jdk.jpackage.internal.RetryExecutor
dup
invokespecial jdk.jpackage.internal.RetryExecutor.<init>:()V
astore 18
start local 18 162: aload 18
aload 12
aload 18
invokedynamic accept(Ljava/nio/file/Path;Ljdk/jpackage/internal/RetryExecutor;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/jpackage/internal/MacDmgBundler.lambda$2(Ljava/nio/file/Path;Ljdk/jpackage/internal/RetryExecutor;Ljdk/jpackage/internal/Executor;)V (6)
(Ljdk/jpackage/internal/Executor;)V
invokevirtual jdk.jpackage.internal.RetryExecutor.setExecutorInitializer:(Ljava/util/function/Consumer;)Ljdk/jpackage/internal/RetryExecutor;
pop
163: aload 18
bipush 10
invokevirtual jdk.jpackage.internal.RetryExecutor.setMaxAttemptsCount:(I)Ljdk/jpackage/internal/RetryExecutor;
sipush 6000
invokevirtual jdk.jpackage.internal.RetryExecutor.setAttemptTimeoutMillis:(I)Ljdk/jpackage/internal/RetryExecutor;
164: aload 11
invokevirtual jdk.jpackage.internal.RetryExecutor.execute:(Ljava/lang/ProcessBuilder;)V
165: goto 177
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path top top top top top jdk.jpackage.internal.RetryExecutor
StackMap stack: java.io.IOException
166: pop
167: aload 18
invokevirtual jdk.jpackage.internal.RetryExecutor.isAborted:()Z
ifne 177
168: aload 12
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 177
169: new java.lang.ProcessBuilder
dup
iconst_5
anewarray java.lang.String
dup
iconst_0
170: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
171: ldc "detach"
aastore
dup
iconst_2
172: ldc "-force"
aastore
dup
iconst_3
173: aload 10
aastore
dup
iconst_4
174: aload 12
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
175: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
176: aload 11
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
end local 18 177: StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path
StackMap stack:
new java.lang.ProcessBuilder
dup
bipush 8
anewarray java.lang.String
dup
iconst_0
178: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
179: ldc "convert"
aastore
dup
iconst_2
180: aload 6
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
dup
iconst_3
181: aload 10
aastore
dup
iconst_4
182: ldc "-format"
aastore
dup
iconst_5
ldc "UDZO"
aastore
dup
bipush 6
183: ldc "-o"
aastore
dup
bipush 7
aload 7
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
184: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
185: new jdk.jpackage.internal.RetryExecutor
dup
invokespecial jdk.jpackage.internal.RetryExecutor.<init>:()V
186: bipush 10
invokevirtual jdk.jpackage.internal.RetryExecutor.setMaxAttemptsCount:(I)Ljdk/jpackage/internal/RetryExecutor;
187: sipush 3000
invokevirtual jdk.jpackage.internal.RetryExecutor.setAttemptTimeoutMillis:(I)Ljdk/jpackage/internal/RetryExecutor;
188: aload 11
invokevirtual jdk.jpackage.internal.RetryExecutor.execute:(Ljava/lang/ProcessBuilder;)V
189: goto 209
StackMap locals:
StackMap stack: java.lang.Exception
190: pop
191: aload 5
192: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-tmp2.dmg"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
193: astore 13
start local 13 194: aload 6
aload 13
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
195: new java.lang.ProcessBuilder
dup
bipush 8
anewarray java.lang.String
dup
iconst_0
196: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
197: ldc "convert"
aastore
dup
iconst_2
198: aload 13
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
dup
iconst_3
199: aload 10
aastore
dup
iconst_4
200: ldc "-format"
aastore
dup
iconst_5
ldc "UDZO"
aastore
dup
bipush 6
201: ldc "-o"
aastore
dup
bipush 7
aload 7
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
202: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
203: aload 11
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
204: goto 208
StackMap locals: jdk.jpackage.internal.MacDmgBundler java.util.Map java.nio.file.Path java.nio.file.Path int java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.nio.file.Path java.lang.String java.lang.ProcessBuilder java.nio.file.Path java.nio.file.Path
StackMap stack: java.lang.Throwable
205: astore 14
206: aload 13
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
pop
207: aload 14
athrow
208: StackMap locals:
StackMap stack:
aload 13
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
pop
end local 13 209: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_LicenseFile:(Ljava/util/Map;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 221
210: new java.lang.ProcessBuilder
dup
iconst_5
anewarray java.lang.String
dup
iconst_0
211: ldc "/usr/bin/hdiutil"
aastore
dup
iconst_1
212: ldc "udifrez"
aastore
dup
iconst_2
213: aload 7
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
dup
iconst_3
214: ldc "-xml"
aastore
dup
iconst_4
215: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.getConfig_LicenseFile:(Ljava/util/Map;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
216: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 11
217: new jdk.jpackage.internal.RetryExecutor
dup
invokespecial jdk.jpackage.internal.RetryExecutor.<init>:()V
218: bipush 10
invokevirtual jdk.jpackage.internal.RetryExecutor.setMaxAttemptsCount:(I)Ljdk/jpackage/internal/RetryExecutor;
219: sipush 3000
invokevirtual jdk.jpackage.internal.RetryExecutor.setAttemptTimeoutMillis:(I)Ljdk/jpackage/internal/RetryExecutor;
220: aload 11
invokevirtual jdk.jpackage.internal.RetryExecutor.execute:(Ljava/lang/ProcessBuilder;)V
221: StackMap locals:
StackMap stack:
aload 6
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
pop
222: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
223: ldc "message.output-to-location"
224: invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
225: getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
aastore
dup
iconst_1
aload 7
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
226: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
227: aload 7
areturn
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 228 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 228 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 228 2 appLocation Ljava/nio/file/Path;
0 228 3 outdir Ljava/nio/file/Path;
1 228 4 copyAppImage Z
2 228 5 imagesRoot Ljava/nio/file/Path;
5 228 6 protoDMG Ljava/nio/file/Path;
8 228 7 finalDMG Ljava/nio/file/Path;
9 228 8 srcFolder Ljava/nio/file/Path;
10 228 9 predefinedImage Ljava/nio/file/Path;
17 27 10 newRoot Ljava/nio/file/Path;
18 27 11 home Ljava/nio/file/Path;
21 27 12 source Ljava/nio/file/Path;
24 27 13 root Ljava/nio/file/Path;
25 27 14 dest Ljava/nio/file/Path;
47 228 10 hdiUtilVerbosityFlag Ljava/lang/String;
57 228 11 pb Ljava/lang/ProcessBuilder;
60 74 12 ex Ljava/io/IOException;
63 74 13 size J
83 228 12 mountedRoot Ljava/nio/file/Path;
88 90 13 destPath Ljava/nio/file/Path;
93 130 13 bgdir Ljava/nio/file/Path;
103 104 14 ex Ljava/io/IOException;
105 130 14 volumeIconFile Ljava/nio/file/Path;
109 130 15 setFileUtility Ljava/lang/String;
126 128 16 ex Ljava/io/IOException;
139 154 18 retryExecutor Ljdk/jpackage/internal/RetryExecutor;
162 177 18 retryExecutor Ljdk/jpackage/internal/RetryExecutor;
194 209 13 protoDMG2 Ljava/nio/file/Path;
Exception table:
from to target type
33 34 35 Class java.io.IOException
57 58 59 Class java.io.IOException
97 101 102 Class java.io.IOException
110 124 125 Class java.io.IOException
92 131 131 any
140 142 143 Class java.io.IOException
163 165 166 Class java.io.IOException
185 189 190 Class java.lang.Exception
195 205 205 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
appLocation
outdir
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.jpackage.internal.MacDmgBundler.I18N:Ljava/util/ResourceBundle;
ldc "dmg.bundler.name"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/MacDmgBundler;
public java.lang.String getID();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "dmg"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/MacDmgBundler;
public boolean validate(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual jdk.jpackage.internal.MacDmgBundler.validateAppImageAndBundeler:(Ljava/util/Map;)V
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 2
start local 2 4: aload 2
invokevirtual java.lang.RuntimeException.getCause:()Ljava/lang/Throwable;
instanceof jdk.jpackage.internal.ConfigException
ifeq 6
5: aload 2
invokevirtual java.lang.RuntimeException.getCause:()Ljava/lang/Throwable;
checkcast jdk.jpackage.internal.ConfigException
athrow
6: StackMap locals: java.lang.RuntimeException
StackMap stack:
new jdk.jpackage.internal.ConfigException
dup
aload 2
invokespecial jdk.jpackage.internal.ConfigException.<init>:(Ljava/lang/Exception;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 7 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
4 7 2 re Ljava/lang/RuntimeException;
Exception table:
from to target type
0 2 3 Class java.lang.RuntimeException
Exceptions:
throws jdk.jpackage.internal.ConfigException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Z
MethodParameters:
Name Flags
params
public java.nio.file.Path execute(java.util.Map<java.lang.String, ? super java.lang.Object>, java.nio.file.Path);
descriptor: (Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.jpackage.internal.MacDmgBundler.bundle:(Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 1 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 1 2 outputParentDir Ljava/nio/file/Path;
Exceptions:
throws jdk.jpackage.internal.PackagerException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/nio/file/Path;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
params
outputParentDir
public boolean supported(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: invokestatic jdk.jpackage.internal.MacDmgBundler.isSupported:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/MacDmgBundler;
0 1 1 runtimeInstaller Z
MethodParameters:
Name Flags
runtimeInstaller
public static boolean isSupported();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=0
0: getstatic jdk.jpackage.internal.MacDmgBundler.required:[Ljava/lang/String;
dup
astore 3
arraylength
istore 2
iconst_0
istore 1
goto 6
StackMap locals: top int int java.lang.String[]
StackMap stack:
1: aload 3
iload 1
aaload
astore 0
start local 0 2: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 3: aload 4
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 4
aload 4
invokestatic java.nio.file.Files.isExecutable:(Ljava/nio/file/Path;)Z
ifne 5
4: StackMap locals: java.lang.String int int java.lang.String[] java.nio.file.Path
StackMap stack:
iconst_0
ireturn
end local 4 end local 0 5: StackMap locals: top int int java.lang.String[]
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
iload 2
if_icmplt 1
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack: java.lang.Exception
pop
9: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
2 5 0 s Ljava/lang/String;
3 5 4 f Ljava/nio/file/Path;
Exception table:
from to target type
0 4 8 Class java.lang.Exception
5 7 8 Class java.lang.Exception
public boolean isDefault();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/MacDmgBundler;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial jdk.jpackage.internal.MacBaseInstallerBundler.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public void cleanup(java.util.Map);
descriptor: (Ljava/util/Map;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial jdk.jpackage.internal.MacBaseInstallerBundler.cleanup:(Ljava/util/Map;)V
return
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$0(java.util.Map);
descriptor: (Ljava/util/Map;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc ""
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
private static java.lang.String lambda$1(java.lang.String, java.util.Map);
descriptor: (Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
0 1 1 p Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
private static void lambda$2(java.nio.file.Path, jdk.jpackage.internal.RetryExecutor, jdk.jpackage.internal.Executor);
descriptor: (Ljava/nio/file/Path;Ljdk/jpackage/internal/RetryExecutor;Ljdk/jpackage/internal/Executor;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 2
1: aload 1
invokevirtual jdk.jpackage.internal.RetryExecutor.abort:()V
2: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 exec Ljdk/jpackage/internal/Executor;
}
SourceFile: "MacDmgBundler.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Encoder = java.util.Base64$Encoder of java.util.Base64
final Source = jdk.jpackage.internal.OverridableResource$Source of jdk.jpackage.internal.OverridableResource