From 7ba209df519cefc5658b985ae73020b0fe6c9af4 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 28 Mar 2024 11:40:53 -0400 Subject: [PATCH] run haveno-desktop on windows to fix #811 --- build.gradle | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 2d89a57eae..8625ca2005 100644 --- a/build.gradle +++ b/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') {