mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
Use Dev Launch Injector to ensure that the launch options are always kept upto date. (#138)
* Generate pre-launch classes to set the run args and system property's Will remove the need to regen the run configs each time the game is updated * fix minor thing. * Small cleanup * Another small rename + remove testing code * Remove import * Add basic auto upgrade path, put the launch classes in a package * Suggested cleanups * Use dev-launch-wrapper * Remove old classes * Rename to dev-launch-injector * Update more things I forgot about
This commit is contained in:
@@ -78,11 +78,11 @@ public class SetupIntelijRunConfigs {
|
||||
String clientRunConfig = RunConfig.clientRunConfig(project).fromDummy("idea_run_config_template.xml");
|
||||
String serverRunConfig = RunConfig.serverRunConfig(project).fromDummy("idea_run_config_template.xml");
|
||||
|
||||
if (!clientRunConfigs.exists()) {
|
||||
if (!clientRunConfigs.exists() || RunConfig.needsUpgrade(clientRunConfigs)) {
|
||||
FileUtils.writeStringToFile(clientRunConfigs, clientRunConfig, StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
if (!serverRunConfigs.exists()) {
|
||||
if (!serverRunConfigs.exists() || RunConfig.needsUpgrade(serverRunConfigs)) {
|
||||
FileUtils.writeStringToFile(serverRunConfigs, serverRunConfig, StandardCharsets.UTF_8);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user