minecraft-server icon indicating copy to clipboard operation
minecraft-server copied to clipboard

build: add setup script for auto-install

Open renejfc opened this issue 1 year ago • 1 comments

About

So, basically I reduced the friction of doing all the initial setup manually by adding a setup script that does everything needed by the app in order to run properly.

Current Status

The script per-se is working properly but fails at the last step when running bun ./src/static/mapper.ts, so the issue lays there.

  • [x] Creates temp setup folder.
  • [x] Download server.jar and store it in in the temp folder.
  • [x] Executes the server.jar with Java to generate folders.
  • [x] Copies blocks.json registries.json to static dir.
  • [ ] Deletes temp setup folder (deactivated until fixing issues)
  • [ ] Generates files in src/db by running bun ./src/static/mapper.ts (fails here)

Note

Please feel free to give me feedback. If there's something wrong on the script or I'm skipping something, please let me know and I'll fix it :)

If everything is in order then this should be merge-ready

renejfc avatar Apr 17 '24 01:04 renejfc

Thank you for this! I will try to have a look at the error you're encountering asap, probably next week, sorry for the delay

peacefulotter avatar Apr 17 '24 17:04 peacefulotter