mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
run haveno-desktop on windows to fix #811
This commit is contained in:
parent
04d4a6a419
commit
7ba209df51
1 changed files with 13 additions and 7 deletions
20
build.gradle
20
build.gradle
|
@ -172,13 +172,19 @@ configure([project(':cli'),
|
|||
'APP_HOME=$( cd "${APP_HOME:-./}.." > /dev/null && pwd -P ) || exit', 'APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit')
|
||||
|
||||
if (applicationName == 'desktop') {
|
||||
def script = file("${rootProject.projectDir}/haveno-$applicationName")
|
||||
script.text = script.text.replace(
|
||||
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=4g ' +
|
||||
'--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED ' +
|
||||
'--add-opens=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED ' +
|
||||
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED ' +
|
||||
'--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED"')
|
||||
windowsScriptFile.text = windowsScriptFile.text.replace(
|
||||
'DEFAULT_JVM_OPTS=', 'DEFAULT_JVM_OPTS=-XX:MaxRAM=4g ' +
|
||||
'--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED ' +
|
||||
'--add-opens=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED ' +
|
||||
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED ' +
|
||||
'--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED')
|
||||
|
||||
unixScriptFile.text = unixScriptFile.text.replace(
|
||||
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=4g ' +
|
||||
'--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED ' +
|
||||
'--add-opens=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED ' +
|
||||
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED ' +
|
||||
'--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED"')
|
||||
}
|
||||
|
||||
if (applicationName == 'apitest') {
|
||||
|
|
Loading…
Reference in a new issue