StarRuler2-Source icon indicating copy to clipboard operation
StarRuler2-Source copied to clipboard

System-wide installation on GNU/Linux?

Open l29ah opened this issue 6 years ago • 1 comments

Okay, i've built the game, but the source doesn't mention where should i put all the resources to be reachable by the game binary. Is there a better way than creating an /opt directory and a wrapper script in PATH?3

l29ah avatar Sep 23 '18 20:09 l29ah

The game expects to discover all its resources in folders relative to the working directory that it is run with. If you're trying to split it into a binary in /usr/bin and assets in /usr/share/ you would have to make some modifications to a number places in the code where assets are discovered.

As is, the StarRuler2.sh launch script automatically sets the working directory to the path that it is in itself, so you should be able to create a symlink to that in /usr/bin, rather than writing your own wrapper. You'll still have to put everything in the same place, though, which /opt sounds like the most logical choice for.

Lucas7211 avatar Sep 26 '18 18:09 Lucas7211