encode42 / flags.sh

A simple script generator to start your Minecraft servers with optimal flags.
https://flags.sh
MIT License
148 stars 20 forks source link

Generation of a downloadable zip #28

Open electronicboy opened 10 months ago

electronicboy commented 10 months ago

If there's one massive headache for macOS, it's the expectation that users will generally understand basic *nix skills in order to get a basic server running, it would kinda be cool if a zip file could be generated that would have a start.command script inside of it, with the executable bit set on the file within.

Contents would also have to marginally be modified for this, mainly, adding a call to cd in order to take us to the directory where the command file is in order to be able to start the server. Doing so would allow mac users to download the zip, extract the command file from within into the server dir, and be able to double click the file to run it;

cd "`dirname $0`"
java -jar server.jar
encode42 commented 10 months ago

I don't have a mac to test this on, so once implemented, I'll need a little help testing whether I've done it correctly, but I'm all for this!

I've experimented with the idea of bundling the selected server jar as well, but I'm not sure about whether projects would be happy with this - it can be visited in the future.

However, this is such a simple change, and if it'll improve the user's experience, I'm a fan!