Bootstrap SPC
Write a wrapper which extracts ServerPackCreator from the JAR-file and runs it in a separate process.
Said wrapper should also run the update checks and notify in case of available updates.
If the wrapper can start and kill the process, then I may be able to write a system where SPC downloads the updates and restarts itself.
- Wrapper starts
- Checks for updates
- Prompt user
Update? Yes/No - If Yes, download, extract and run
- Prompt user
- Run ServerPackCreator
A wrapper like that would also allow me to always run ServerPackCreator in the same directory, no matter if the user uses a link of some kind. Though how that would reliably be implemented is still a mystery to me. The wrapper would then have the problem which ServerPackCreator currently has: When a user uses a link to SPC of any kind, the directory in which the link resides in is used as the working directory by the JVM...
However, the wrapper itself would be a huge step in the right direction. Auto-Updates, opt-out.