Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System-wide installation on GNU/Linux? #43

Open
l29ah opened this issue Sep 23, 2018 · 1 comment
Open

System-wide installation on GNU/Linux? #43

l29ah opened this issue Sep 23, 2018 · 1 comment

Comments

@l29ah
Copy link
Contributor

l29ah commented Sep 23, 2018

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

@Lucas7211
Copy link
Member

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.

l29ah added a commit to l29ah/booboo that referenced this issue Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants