feat!: rename project from mcl/mcl-launcher to rmcl
Renames Cargo package, binary, internal path identifiers, java shim, user-agent, log filename, desktop shortcut Exec lines, and CLI program name. Wires src/migrate.rs into main() so existing users have their on-disk data (~/.config/mcl/, ~/.local/share/mcl/, ~/.cache/mcl/) moved to the new locations on first launch. BREAKING CHANGE: binary is now named rmcl. Old paths are auto-migrated.
This commit is contained in:
1 parent
2b3aa4df32
commit
ae2524f2ce
16 files changed
+96
-91
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public class RmclShim {
|
||||
public static void main(String[] args) throws Exception {
|
||||
if (args.length == 0) {
|
||||
System.err.println("Usage: RmclShim <mainClass> [args...]");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
String mainClass = args[0];
|
||||
String[] remaining = new String[args.length - 1];
|
||||
System.arraycopy(args, 1, remaining, 0, remaining.length);
|
||||
|
||||
ClassLoader loader = ClassLoader.getSystemClassLoader();
|
||||
Class<?> clazz = loader.loadClass(mainClass);
|
||||
Method main = clazz.getMethod("main", String[].class);
|
||||
main.invoke(null, (Object) remaining);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user