On Mon, 29 Sep 2025 16:31:00 GMT, Alexander Matveev <[email protected]> wrote:
>> Even though it is undocumented, somebody might have used it for years when >> jpackage was a part of JavaFX. >> >>> $1 can be used instead of in the scripts >> >> Is `$1` a synonym for `INSTALL_LOCATION` or `APP_LOCATION`? > > `$0`: The full path to the script itself. > `$1`: The full path to the installation package (.pkg file). > `$2`: The full path to the installation destination. > `$3`: The mount point of the destination volume. > > This is what is available from script. It is actually `$2` which will point > to install location such as `/Applications`. `APP_LOCATION` can be figured > out based on application name, since it is know by user. Also, in our case > `INSTALL_LOCATION` will point to `/Applications/Test.app` which is not > correct install location since it includes application name. Thank you for the explanation. Agree to drop `APP_LOCATION` and `INSTALL_LOCATION`. Affected users, if any, can come up with workarounds that will work with all jpackage versions. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25510#discussion_r2388645340
