Skip to content

Commit

Permalink
permit install into windows program files
Browse files Browse the repository at this point in the history
when installing terasology into program files, that dir is not writeable.
starting up, terasology tries to create a folder in .local, which then
fails.

therefor, permit to start the application from a different directory,
and let it anyway find its libraries via the classpath. a workaround,
as the app should ideally know its location and other jarfiles without
tinkering with the classpath.
  • Loading branch information
soloturn committed Oct 12, 2024
1 parent bceffdd commit 2176bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions facades/PC/src/main/startScripts/windowsStartScript.bat.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ goto fail

<% if ( mainClassName.startsWith('--module ') ) { %>set MODULE_PATH=$modulePath<% } %>

@rem Execute ${applicationName}
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %${optsEnvironmentVar}% <% if ( appNameSystemProperty ) { %>"-D${appNameSystemProperty}=%APP_BASE_NAME%"<% } %> <% if ( mainClassName.startsWith('--module ') ) { %>--module-path "%MODULE_PATH%" <% } %>-jar lib\\Terasology.jar %*
@rem Execute ${applicationName} in home directory
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %${optsEnvironmentVar}% <% if ( appNameSystemProperty ) { %>"-D${appNameSystemProperty}=%APP_BASE_NAME%"<% } %> <% if ( mainClassName.startsWith('--module ') ) { %>--module-path "%MODULE_PATH%" <% } %>-jar "%APP_HOME%\\lib\\Terasology.jar" %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down

0 comments on commit 2176bab

Please sign in to comment.