199 } else { 200 APP_BUNDLER.fetchFrom(params).doValidate(params); 201 } 202 } 203 204 protected File prepareAppBundle(Map<String, ? super Object> p) { 205 File predefinedImage = getPredefinedImage(p); 206 if (predefinedImage != null) { 207 return predefinedImage; 208 } 209 210 File appImageRoot = APP_IMAGE_BUILD_ROOT.fetchFrom(p); 211 return APP_BUNDLER.fetchFrom(p).doBundle(p, appImageRoot, true); 212 } 213 214 protected File prepareDaemonBundle(Map<String, ? super Object> p) { 215 File daemonImageRoot = DAEMON_IMAGE_BUILD_ROOT.fetchFrom(p); 216 return DAEMON_BUNDLER.fetchFrom(p).doBundle(p, daemonImageRoot, true); 217 } 218 219 // public static void signAppBundle(Map<String, ? super Object> params, File appLocation, String signingIdentity, String identifierPrefix) throws IOException { 220 // signAppBundle(params, appLocation, signingIdentity, identifierPrefix, null, null); 221 // } 222 // 223 224 225 @Override 226 public Collection<BundlerParamInfo<?>> getBundleParameters() { 227 Collection<BundlerParamInfo<?>> results = new LinkedHashSet<>(); 228 229 results.addAll(MacAppBundler.getAppBundleParameters()); 230 results.addAll(Arrays.asList( 231 APP_BUNDLER, 232 CONFIG_ROOT, 233 APP_IMAGE_BUILD_ROOT, 234 MAC_APP_IMAGE 235 )); 236 237 return results; 238 } 239 240 @Override 241 public String getBundleType() { 242 return "INSTALLER"; 243 } 244 | 199 } else { 200 APP_BUNDLER.fetchFrom(params).doValidate(params); 201 } 202 } 203 204 protected File prepareAppBundle(Map<String, ? super Object> p) { 205 File predefinedImage = getPredefinedImage(p); 206 if (predefinedImage != null) { 207 return predefinedImage; 208 } 209 210 File appImageRoot = APP_IMAGE_BUILD_ROOT.fetchFrom(p); 211 return APP_BUNDLER.fetchFrom(p).doBundle(p, appImageRoot, true); 212 } 213 214 protected File prepareDaemonBundle(Map<String, ? super Object> p) { 215 File daemonImageRoot = DAEMON_IMAGE_BUILD_ROOT.fetchFrom(p); 216 return DAEMON_BUNDLER.fetchFrom(p).doBundle(p, daemonImageRoot, true); 217 } 218 219 @Override 220 public Collection<BundlerParamInfo<?>> getBundleParameters() { 221 Collection<BundlerParamInfo<?>> results = new LinkedHashSet<>(); 222 223 results.addAll(MacAppBundler.getAppBundleParameters()); 224 results.addAll(Arrays.asList( 225 APP_BUNDLER, 226 CONFIG_ROOT, 227 APP_IMAGE_BUILD_ROOT, 228 MAC_APP_IMAGE 229 )); 230 231 return results; 232 } 233 234 @Override 235 public String getBundleType() { 236 return "INSTALLER"; 237 } 238 |