KAMI icon indicating copy to clipboard operation
KAMI copied to clipboard

Feature: Client auto updater

Open Mhowser opened this issue 5 years ago • 18 comments

It would be pretty great if KAMI could auto-update itself when a new release is available, instead of downloading the jar manually

Mhowser avatar Oct 27 '18 21:10 Mhowser

Add an option to select what branch

5HT2 avatar Oct 27 '18 22:10 5HT2

Also, if this simply updated the updated files and added the new files, instead of replacing it completely would make if more efficient and if you've modded the files like to disable the injection it keeps those modifications

5HT2 avatar Oct 27 '18 22:10 5HT2

I mean, I already have auto-build setup on my fork, currently builds and releases the artifact if the commit is marked as a release. Wouldn't be hard to add to the official KAMI repo either

wine avatar Oct 28 '18 07:10 wine

Just leaving this here for reference, this is a pain in the ass to support on Windows due to Windows FS locking the mod file, even though it's technically loaded into ram, the only way to do it is with the game closed or by replacing the file's classes yourself, which screws any idea of adding version numbers in file names.

5HT2 avatar Aug 31 '20 21:08 5HT2

What about us Linux users ;)

On Mon, Aug 31, 2020, 2:14 PM Dominika [email protected] wrote:

Just leaving this here for reference, this is a pain in the ass to support on Windows due to Windows FS locking the mod file, even though it's technically loaded into ram, the only way to do it is with the game closed or by replacing the file's classes yourself, which screws any idea of adding version numbers in file names.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zeroeightysix/KAMI/issues/83#issuecomment-684043850, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFYTD5EQ4WXEOSGARQVAP5LSDQHDPANCNFSM4F7WTQWQ .

Mhowser avatar Aug 31 '20 23:08 Mhowser

It is much easier on Linux. It seems like it's almost impossible on OSX, I couldn't get Java's File.delete() to work, I probably had to ask for permission or something.

On Linux you can just delete the old file and download the new one while running, no problem, without any issues.

5HT2 avatar Aug 31 '20 23:08 5HT2

Proof that Linux is superior

JerryWester avatar Sep 01 '20 06:09 JerryWester

DONT FKN HOT RELOAD, ezz fix...

RealIndrit avatar Sep 01 '20 08:09 RealIndrit

Proof that Linux is superior

Always has been

Mhowser avatar Sep 01 '20 09:09 Mhowser

I don't think this is a good idea. kami is very easy to update due to being a fabric mod (unlike other mods like impact). This in my opinion may also not be desirable. For example what if I work on my fork and it thinks it's an outdated version, or I wanna use an old version for whatever reason. That could get really annoying.

LordMZTE avatar Nov 16 '20 19:11 LordMZTE

KAMI isn't updated often enough to warrant this either

5HT2 avatar Nov 16 '20 19:11 5HT2

It is much easier on Linux. It seems like it's almost impossible on OSX, I couldn't get Java's File.delete() to work, I probably had to ask for permission or something.

On Linux you can just delete the old file and download the new one while running, no problem, without any issues.

Even though it seems like KAMI isn't getting an auto-updater one approach you could take is having a daemon type process that handles updating.

wine avatar Nov 17 '20 08:11 wine

This has already been done with Wurst client. (GPL v3) https://github.com/Wurst-Imperium/Wurst7/blob/master/src/main/java/net/wurstclient/update/WurstUpdater.java

I think you guys could use this as well.

Mhowser avatar Nov 17 '20 18:11 Mhowser

That doesn't do anything except tell you to download the latest version lol

5HT2 avatar Nov 17 '20 18:11 5HT2

Sorry I dont really understand code. Is this the right one? (GPL v3) https://github.com/Wurst-Imperium/Wurst7/blob/master/src/main/java/net/wurstclient/update/Version.java

Mhowser avatar Nov 17 '20 18:11 Mhowser

No, that just checks if the current version is the latest one, and gives you a link to the Wurst website

5HT2 avatar Nov 17 '20 18:11 5HT2

That is the same Version.java in the update folder, it only checks if the current version is out of date lol

5HT2 avatar Nov 17 '20 19:11 5HT2

That was an email that sent too late sorry.

Mhowser avatar Nov 17 '20 21:11 Mhowser