Closed DBTDerpbox closed 2 years ago
Maybe an auto-update script could be added
would would you handle that? like upon launch of LEB?
I will try my best, altough I don't really know that much at python (looking at the linux side). As for Windows, I can try to add (an independent) GUI aswell, .Net Framework is already part of the Windows 10 Core so I can work without any dependencies.
a thing to consider is dedicated servers (which LEB public also runs on) most of the time run some form of Linux, and many hosts do not support supplying launching a .py file instead of .jar
i'm willing to make an updater when i figure out how to take an existing file and rewrite parts of it in python (which is also why LEB-ModTools is completely stuck again)
I tought the updater objective was to replace the old files with new ones, not rewriting parts of the files itself.
well thats mostly its job, but also updating the MOTD to display the correct commit
Don't worry about It, feel free to focus on other things. I'll make the program when I finish some stuff I have to do.
i see MOTDs arent the most important thing, i actually dont think public LEB's MOTD is on this repo or anywhere else
do you need it?
Yes. Besides the MOTD, does the program need to do anything else?
pretty much no, maybe the ability to select what branch to download from? might be complicated to add and honestly not worth it since main is the only branch that receives updates at all
GUIs and branch selector is done. What files do you want to backup?
the advancements
folder inside of the world folder is the only thing that should be backed up, the only thing you'll be replacing is the world folder itself and the SRP config in config/switchableresourcepacksconfig.json5
this has been solved with the existence of LEB-ToolBox being used for updates now
Currently, updating the server is done via deleting the entire world folder excluding advancements and redownloading the source from github and copying everything excluding advancements back into the world folder
a proper guide needs to be made about this