60 Path outputBundle = cmd.outputBundle(); |
60 Path outputBundle = cmd.outputBundle(); |
61 SigningBase.verifyCodesign(outputBundle, false); |
61 SigningBase.verifyCodesign(outputBundle, false); |
62 } |
62 } |
63 |
63 |
64 private static void verifyAppImageInDMG(JPackageCommand cmd) { |
64 private static void verifyAppImageInDMG(JPackageCommand cmd) { |
65 MacHelper.withExplodedDmg(cmd, disk -> { |
65 MacHelper.withExplodedDmg(cmd, dmgImage -> { |
66 Path appImageInDMG = disk.resolve(cmd.name() + ".app"); |
66 Path launcherPath = dmgImage.resolve(Path.of("Contents", "MacOS", cmd.name())); |
67 Path launcherPath = appImageInDMG.resolve(Path.of("Contents", "MacOS", cmd.name())); |
|
68 SigningBase.verifyCodesign(launcherPath, true); |
67 SigningBase.verifyCodesign(launcherPath, true); |
69 SigningBase.verifyCodesign(appImageInDMG, true); |
68 SigningBase.verifyCodesign(dmgImage, true); |
70 SigningBase.verifySpctl(appImageInDMG, "exec"); |
69 SigningBase.verifySpctl(dmgImage, "exec"); |
71 }); |
70 }); |
72 } |
71 } |
73 |
72 |
74 public static void main(String[] args) throws Exception { |
73 public static void main(String[] args) throws Exception { |
75 TKit.run(args, () -> { |
74 TKit.run(args, () -> { |