tushev / aojdk-updatewatcher

Automatic update tool for AdoptOpenJDK, Eclipse Temurin™ and/or IBM® Semeru® Open Edition releases
https://github.com/tushev/aojdk-updatewatcher/wiki
MIT License
126 stars 2 forks source link

[Feature Request] Install / Unpack selector #53

Open TheByKotik opened 2 years ago

TheByKotik commented 2 years ago

Is your feature request related to a problem? Please describe. I have 3+ unpacked JRE and will be great have feature to update it. image

I'm sure that it's not a 'known-not-a-bug'

Describe the solution you'd like Keep unpacked JRE up-to-date.

Describe alternatives you've considered None? Manual unpacking?

Additional request Also support of minification (removing all files that not required to launch like docs).

tushev commented 2 years ago

Hello, thank you for your report.

From your screenshot, I see that all the JREs are shown as Not detected. This usually happens if Update Watcher is unable to determine the version of the runtime, either from Windows Registry (MSIs) or release file (both MSIs and unpacked ZIPs).

In order for Update Watcher to work, release file MUST be present in the root directory that is specified in Updater's list (D:\Games\Minecraft\MultiMC\jre\17\s in one of your cases): image

Once you have your installations look like this in the list: image (pay attention to User added status and presence of detected version + vendor), you can check for updates:

image

With the current version of Update Watcher, you should use context menu in order to manually download ZIPs. You also have to unpack them manually, and keep the list of installation directories up-to-date.

Full automation is currently supported for MSI packages only. I may include automation for ZIPs in one of the upcoming releases.


As for your Additional request: it's a rare feature that is not used by many folks. I would prefer not to implement it myself, but rather to use one of the existing minifiers like https://github.com/abrayall/hummingbird (or the user could write the script themselves).

There's a Post-Install command feature in Update Watcher > Settings, please check it: image

It is executed after MSI installation, I cannot say whether it will work after using context menu ZIP commands (let me know).

TheByKotik commented 2 years ago

In order for Update Watcher to work, release file MUST be present in the root directory that is specified in Updater's list

Thanks, I didn't read your code and i have been sure you using checks like this one: https://github.com/MultiMC/Launcher/blob/develop/libraries/javacheck/JavaCheck.java https://github.com/MultiMC/Launcher/blob/develop/launcher/java/JavaChecker.cpp

As for your Additional request: it's a rare feature that is not used by many folks. I would prefer not to implement it myself, but rather to use one of the existing minifiers like https://github.com/abrayall/hummingbird (or the user could write the script themselves).

I mean just do not unpack: — include dir. — legal dir. — release file.