File tree Expand file tree Collapse file tree 3 files changed +0
-17
lines changed
src/jdk.jpackage/macosx/classes/jdk/jpackage/internal Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -368,16 +368,8 @@ private void prepareMainScripts() throws IOException {
368368
369369 Files .createDirectories (scriptsRoot );
370370
371- final Map <String , String > data = new HashMap <>();
372-
373- final var appLocation = pkg .asInstalledPackageApplicationLayout ().orElseThrow ().appDirectory ();
374-
375- data .put ("INSTALL_LOCATION" , Path .of ("/" ).resolve (pkg .relativeInstallDir ()).toString ());
376- data .put ("APP_LOCATION" , appLocation .toString ());
377-
378371 MacPkgInstallerScripts .createAppScripts ()
379372 .setResourceDir (env .resourceDir ().orElse (null ))
380- .setSubstitutionData (data )
381373 .saveInFolder (scriptsRoot );
382374 }
383375
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22
3- chown root:wheel " INSTALL_LOCATION"
4- chmod a+rX " INSTALL_LOCATION"
5- chmod +r " APP_LOCATION/" * .jar
6-
73exit 0
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22
3- if [ ! -d " INSTALL_LOCATION" ]
4- then
5- mkdir -p " INSTALL_LOCATION"
6- fi
7-
83exit 0
You can’t perform that action at this time.
0 commit comments