Skip to content

Commit

Permalink
Fix Windows issue with forge jar opening
Browse files Browse the repository at this point in the history
Gradle 8.10
  • Loading branch information
FlowArg committed Aug 17, 2024
1 parent dc98ac2 commit f936117
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'maven-publish'
apply plugin: 'signing'

group 'fr.flowarg'
version '1.9.0'
version '1.9.1'
archivesBaseName = "flowupdater"

java {
Expand Down Expand Up @@ -35,7 +35,7 @@ dependencies {

// Only for internal tests
testImplementation 'fr.flowarg:openlauncherlib:3.2.10'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.3'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0'
}

publishing {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion src/main/java/fr/flowarg/flowupdater/FlowUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class FlowUpdater
{
/** FlowUpdater's version string constant */
public static final String FU_VERSION = "1.9.0";
public static final String FU_VERSION = "1.9.1";

/** Vanilla version's object to update/install */
private final VanillaVersion vanillaVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public void install(@NotNull Path installDir) throws Exception
else
{
this.logger.info("Installing libraries...");
final URI uri = URI.create("jar:file:" + installerFile.toAbsolutePath());
final URI uri = URI.create("jar:" + installerFile.toAbsolutePath().toUri());
try (final FileSystem zipFs = FileSystems.newFileSystem(uri, new HashMap<>()))
{
final Path versionFile = zipFs.getPath("version.json");
Expand Down Expand Up @@ -307,7 +307,7 @@ public void install(@NotNull Path installDir) throws Exception
else
{
this.logger.info("Installing libraries...");
final URI uri = URI.create("jar:file:" + installerFile.toAbsolutePath());
final URI uri = URI.create("jar:" + installerFile.toAbsolutePath().toUri());
try (final FileSystem zipFs = FileSystems.newFileSystem(uri, new HashMap<>()))
{
final Path installProfileFile = zipFs.getPath("install_profile.json");
Expand Down

0 comments on commit f936117

Please sign in to comment.