Skip to content

Commit

Permalink
Configure installer to hide the extract option (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt authored Jan 4, 2024
1 parent 5a6ff8a commit 7d61a8d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ public void runtime(final String neoFormVersion, Directory patches, Directory re

task.dependsOn(universalJar);
});

installerProfile.configure((Consumer<InstallerProfile>) profile -> {
profile.getProfile().set(project.getName());
profile.getProfile().convention(project.getName());
profile.getVersion().set(launcherProfile.getId());
profile.getMinecraft().set(runtimeDefinition.getSpecification().getMinecraftVersion());
profile.getServerJarPath().set("{LIBRARY_DIR}/net/minecraft/server/{MINECRAFT_VERSION}/server-{MINECRAFT_VERSION}.jar");
Expand Down Expand Up @@ -436,7 +436,9 @@ public void runtime(final String neoFormVersion, Directory patches, Directory re
profile.getJson().set("/version.json");
profile.getLogo().set("/big_logo.png");
profile.getMirrorList().set("https://mirrors.neoforged.net");
profile.getWelcome().set("Welcome to the simple installer for " + project.getName());
profile.getWelcome().convention(profile.getProfile().map(name -> "Welcome to the simple " + name + " installer"));

profile.getShouldHideExtract().set(true);
});

final TaskProvider<CreateLegacyInstallerJson> createLegacyInstallerJson = project.getTasks().register("createLegacyInstallerJson", CreateLegacyInstallerJson.class, task -> {
Expand Down

0 comments on commit 7d61a8d

Please sign in to comment.