mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
8349509: [macos] Clean up macOS dead code in jpackage
Reviewed-by: asemenyuk
This commit is contained in:
parent
7f6c687815
commit
f0ea38b387
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,7 +51,6 @@ import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.xpath.XPath;
|
||||
import javax.xml.xpath.XPathConstants;
|
||||
import javax.xml.xpath.XPathFactory;
|
||||
import jdk.internal.util.OperatingSystem;
|
||||
import jdk.internal.util.OSVersion;
|
||||
import static jdk.jpackage.internal.MacAppBundler.BUNDLE_ID_SIGNING_PREFIX;
|
||||
import static jdk.jpackage.internal.MacAppBundler.DEVELOPER_ID_APP_SIGNING_KEY;
|
||||
@ -419,12 +418,8 @@ public class MacAppImageBuilder extends AbstractAppImageBuilder {
|
||||
signAppBundle(params, root, "-", null, null);
|
||||
}
|
||||
restoreKeychainList(params);
|
||||
} else if (OperatingSystem.isMacOS()) {
|
||||
signAppBundle(params, root, "-", null, null);
|
||||
} else {
|
||||
// Calling signAppBundle() without signingIdentity will result in
|
||||
// unsigning app bundle
|
||||
signAppBundle(params, root, null, null, null);
|
||||
signAppBundle(params, root, "-", null, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -65,13 +65,6 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
|
||||
|
||||
static final String DEFAULT_LICENSE_PLIST="lic_template.plist";
|
||||
|
||||
public static final BundlerParamInfo<String> INSTALLER_SUFFIX =
|
||||
new StandardBundlerParam<> (
|
||||
"mac.dmg.installerName.suffix",
|
||||
String.class,
|
||||
params -> "",
|
||||
(s, p) -> s);
|
||||
|
||||
public Path bundle(Map<String, ? super Object> params,
|
||||
Path outdir) throws PackagerException {
|
||||
Log.verbose(MessageFormat.format(I18N.getString("message.building-dmg"),
|
||||
@ -276,9 +269,10 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
|
||||
Files.createDirectories(imagesRoot);
|
||||
}
|
||||
|
||||
Path protoDMG = imagesRoot.resolve(APP_NAME.fetchFrom(params) +"-tmp.dmg");
|
||||
Path protoDMG = imagesRoot.resolve(APP_NAME.fetchFrom(params)
|
||||
+ "-tmp.dmg");
|
||||
Path finalDMG = outdir.resolve(MAC_INSTALLER_NAME.fetchFrom(params)
|
||||
+ INSTALLER_SUFFIX.fetchFrom(params) + ".dmg");
|
||||
+ ".dmg");
|
||||
|
||||
Path srcFolder = appLocation.getParent();
|
||||
if (StandardBundlerParam.isRuntimeInstaller(params)) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -140,13 +140,6 @@ public class MacPkgBundler extends MacBaseInstallerBundler {
|
||||
},
|
||||
(s, p) -> s);
|
||||
|
||||
public static final BundlerParamInfo<String> INSTALLER_SUFFIX =
|
||||
new StandardBundlerParam<> (
|
||||
"mac.pkg.installerName.suffix",
|
||||
String.class,
|
||||
params -> "",
|
||||
(s, p) -> s);
|
||||
|
||||
public Path bundle(Map<String, ? super Object> params,
|
||||
Path outdir) throws PackagerException {
|
||||
Log.verbose(MessageFormat.format(I18N.getString("message.building-pkg"),
|
||||
@ -593,7 +586,6 @@ public class MacPkgBundler extends MacBaseInstallerBundler {
|
||||
|
||||
// build final package
|
||||
Path finalPKG = outdir.resolve(MAC_INSTALLER_NAME.fetchFrom(params)
|
||||
+ INSTALLER_SUFFIX.fetchFrom(params)
|
||||
+ ".pkg");
|
||||
Files.createDirectories(outdir);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user