play2-native-packager-plugin icon indicating copy to clipboard operation
play2-native-packager-plugin copied to clipboard

#11 First work done

Open muuki88 opened this issue 11 years ago • 4 comments

  • Start script only works when you start it on the correct path. Play starter script doesn't evaluate the relative symlink correctly
  • init.d script doesn't work correctly even when the path is fixed (hard coded). No idea here.

muuki88 avatar Sep 21 '13 11:09 muuki88

The sbt-native-packager script is here

It is used in the JavaAppBashScript.scala

muuki88 avatar Sep 21 '13 11:09 muuki88

Cool!

kryptt avatar Sep 21 '13 12:09 kryptt

The problem with the bash script seems to be that realpath() cannot handle the relative symlink correctly.

/usr/bin/<app> -> ../share/<app>/bin/<app>

when I run ./<app> from /usr/share/<app>/bin everything works. On every other path it fails, as it cannot find the /usr/share/<app>/lib aka the lib_dir. I think I will open a bug on the sbt-native-packager issue tracker.

muuki88 avatar Sep 21 '13 15:09 muuki88

Ticket https://github.com/sbt/sbt-native-packager/issues/39

muuki88 avatar Sep 21 '13 23:09 muuki88