kami-blue / client

ARCHIVED - KAMI Blue: a continuation of 1.12.2 KAMI
https://kamiblue.org
GNU Lesser General Public License v3.0
360 stars 379 forks source link

Jar installer #271

Closed 5HT2 closed 4 years ago

5HT2 commented 4 years ago

Because people don't read the readme for some reason

zeroeightysix commented 4 years ago

Why not have an actual installer instead of install instructions?

5HT2 commented 4 years ago

That's a better idea honestly.

ghost commented 4 years ago

the only way i can think of doing this is using git to download the source, build it with jdk, then send the last modified file in /libs/builds with "release" in its name to the mods folder but im stupid so i probably overcomplicated about 193 things

5HT2 commented 4 years ago

No, it can literally copy forges updater.

I added it in release v1.1.1 but making a separate program to automatically get the url and download it is what the issue is for

5HT2 commented 4 years ago

Currently there's an installer branch which demonstrates how to keep it a forge mod but also have the jar do something when opened. I doubt I'll ever get around to it, so I'm probably going to close this as won't fix. I'll comment the important code here before I delete the branch.

5HT2 commented 4 years ago

Alright, so it all goes in build.gradle.

Move your buildscript to the top, as this requires it.

After build: dependson(shadowjar) add this

void application() {
    mainClassName = 'wtf.bella.installer.Main'
} 

And you can make that class do something

package wtf.bella.installer;

public class Main {
    public static void main(String[] args) {
        System.out.println("ran installer!!!");
    }
}
x4e commented 4 years ago

😯

humboldt123 commented 4 years ago

now this is podracing

humboldt123 commented 4 years ago

Alrighty. I'm thinking of doing this in Python.

5HT2 commented 4 years ago

why the fuck.

5HT2 commented 4 years ago

image Kinda pog

Automatically deletes older versions of KAMI and KAMI Blue on confirmation and warns if you don't have Forge installed