Integrated: 8356047: [macos] jpackage produces confusing post- and pre- installation PKG scripts
Alexander Matveev
almatvee at openjdk.org
Fri Oct 10 01:14:22 UTC 2025
On Wed, 28 May 2025 19:32:47 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
> - Removed pre- and post- installation PKG scripts.
> - This code is not needed and PKG should create destination folder and set correct permissions.
> - If for some reason it is not happens, permissions issues should be fixed when jpackage prepares application bundle. PKG should keep all permissions unchanged when packaging and installing bundle.
> - Users will have ability to provide pre- and post- installation PKG scripts if needed.
> - `INSTALL_LOCATION` and `APP_LOCATION` substitution is removed, since `$2` argument in scripts is same as `INSTALL_LOCATION`.
> - I think code in these scripts are some legacy leftovers.
> - Added test to test that pre- and post-scripts are no longer exist and can be added via `--resource-dir`.
This pull request has now been integrated.
Changeset: 1873b459
Author: Alexander Matveev <almatvee at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1873b4594883758a5c8b4094f49dfea36c7c0145
Stats: 309 lines in 9 files changed: 246 ins; 26 del; 37 mod
8356047: [macos] jpackage produces confusing post- and pre- installation PKG scripts
Reviewed-by: asemenyuk
-------------
PR: https://git.openjdk.org/jdk/pull/25510
More information about the core-libs-dev
mailing list