minecraft-server
minecraft-server copied to clipboard
build: add setup script for auto-install
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
setupfolder. - [x] Download
server.jarand store it in in the temp folder. - [x] Executes the
server.jarwith Java to generate folders. - [x] Copies
blocks.jsonregistries.jsontostaticdir. - [ ] Deletes temp
setupfolder (deactivated until fixing issues) - [ ] Generates files in
src/dbby runningbun ./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
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