modules/jdk.packager/src/main/java/com/oracle/tools/packager/mac/MacPkgBundler.java

Print this page

        

*** 28,37 **** --- 28,38 ---- import com.oracle.tools.packager.BundlerParamInfo; import com.oracle.tools.packager.StandardBundlerParam; import com.oracle.tools.packager.Log; import com.oracle.tools.packager.ConfigException; import com.oracle.tools.packager.IOUtils; + import com.oracle.tools.packager.Platform; import com.oracle.tools.packager.RelativeFileSet; import com.oracle.tools.packager.UnsupportedPlatformException; import java.io.BufferedWriter; import java.io.File;
*** 394,403 **** --- 395,409 ---- } private File createPKG(Map<String, ? super Object> params, File outdir, File appLocation) { //generic find attempt try { + if (Platform.getMajorVersion() > 10 || + (Platform.getMajorVersion() == 10 && Platform.getMinorVersion() >= 12)) { + // we need this for OS X 10.12+ + Log.info(I18N.getString("message.signing.pkg")); + } String daemonLocation = DAEMON_IMAGE_BUILD_ROOT.fetchFrom(params) + "/" + APP_NAME.fetchFrom(params) + ".daemon"; File appPKG = getPackages_AppPackage(params); File daemonPKG = getPackages_DaemonPackage(params);