< prev index next >

src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacAppStoreBundler.java

Print this page




 123                 "message.building-bundle"), APP_NAME.fetchFrom(params)));
 124 
 125         IOUtils.writableOutputDir(outdir.toPath());
 126 
 127         // first, load in some overrides
 128         // icns needs @2 versions, so load in the @2 default
 129         params.put(DEFAULT_ICNS_ICON.getID(), TEMPLATE_BUNDLE_ICON_HIDPI);
 130 
 131         // now we create the app
 132         File appImageDir = APP_IMAGE_TEMP_ROOT.fetchFrom(params);
 133         try {
 134             appImageDir.mkdirs();
 135 
 136             try {
 137                 MacAppImageBuilder.addNewKeychain(params);
 138             } catch (InterruptedException e) {
 139                 Log.error(e.getMessage());
 140             }
 141             // first, make sure we don't use the local signing key
 142             params.put(DEVELOPER_ID_APP_SIGNING_KEY.getID(), null);
 143             File appLocation = prepareAppBundle(params, false);
 144 
 145             prepareEntitlements(params);
 146 
 147             String signingIdentity =
 148                     MAC_APP_STORE_APP_SIGNING_KEY.fetchFrom(params);
 149             String identifierPrefix =
 150                     BUNDLE_ID_SIGNING_PREFIX.fetchFrom(params);
 151             String entitlementsFile =
 152                     getConfig_Entitlements(params).toString();
 153             String inheritEntitlements =
 154                     getConfig_Inherit_Entitlements(params).toString();
 155 
 156             MacAppImageBuilder.signAppBundle(params, appLocation.toPath(),
 157                     signingIdentity, identifierPrefix,
 158                     entitlementsFile, inheritEntitlements);
 159             MacAppImageBuilder.restoreKeychainList(params);
 160 
 161             ProcessBuilder pb;
 162 
 163             // create the final pkg file




 123                 "message.building-bundle"), APP_NAME.fetchFrom(params)));
 124 
 125         IOUtils.writableOutputDir(outdir.toPath());
 126 
 127         // first, load in some overrides
 128         // icns needs @2 versions, so load in the @2 default
 129         params.put(DEFAULT_ICNS_ICON.getID(), TEMPLATE_BUNDLE_ICON_HIDPI);
 130 
 131         // now we create the app
 132         File appImageDir = APP_IMAGE_TEMP_ROOT.fetchFrom(params);
 133         try {
 134             appImageDir.mkdirs();
 135 
 136             try {
 137                 MacAppImageBuilder.addNewKeychain(params);
 138             } catch (InterruptedException e) {
 139                 Log.error(e.getMessage());
 140             }
 141             // first, make sure we don't use the local signing key
 142             params.put(DEVELOPER_ID_APP_SIGNING_KEY.getID(), null);
 143             File appLocation = prepareAppBundle(params);
 144 
 145             prepareEntitlements(params);
 146 
 147             String signingIdentity =
 148                     MAC_APP_STORE_APP_SIGNING_KEY.fetchFrom(params);
 149             String identifierPrefix =
 150                     BUNDLE_ID_SIGNING_PREFIX.fetchFrom(params);
 151             String entitlementsFile =
 152                     getConfig_Entitlements(params).toString();
 153             String inheritEntitlements =
 154                     getConfig_Inherit_Entitlements(params).toString();
 155 
 156             MacAppImageBuilder.signAppBundle(params, appLocation.toPath(),
 157                     signingIdentity, identifierPrefix,
 158                     entitlementsFile, inheritEntitlements);
 159             MacAppImageBuilder.restoreKeychainList(params);
 160 
 161             ProcessBuilder pb;
 162 
 163             // create the final pkg file


< prev index next >