mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Limit for bisq-desktop only
This commit is contained in:
parent
dc7a904a7f
commit
f127c28d1d
@ -133,9 +133,11 @@ configure([project(':cli'),
|
||||
unixScriptFile.text = unixScriptFile.text.replace(
|
||||
'cd "`dirname \\"$PRG\\"`/.." >/dev/null', 'cd "`dirname \\"$PRG\\"`" >/dev/null')
|
||||
|
||||
def script = file("${rootProject.projectDir}/bisq-$applicationName")
|
||||
script.text = script.text.replace(
|
||||
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=4GB"')
|
||||
if (applicationName == 'desktop') {
|
||||
def script = file("${rootProject.projectDir}/bisq-$applicationName")
|
||||
script.text = script.text.replace(
|
||||
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=4g"')
|
||||
}
|
||||
|
||||
if (osdetector.os != 'windows')
|
||||
delete fileTree(dir: rootProject.projectDir, include: 'bisq-*.bat')
|
||||
|
@ -108,6 +108,7 @@ $JAVA_HOME/bin/javapackager \
|
||||
-srcfiles desktop-$version-all.jar \
|
||||
-appclass bisq.desktop.app.BisqAppMain \
|
||||
-BjvmOptions=-Xss1280k \
|
||||
-BjvmOptions=-XX:MaxRAM=4g \
|
||||
-BjvmOptions=-Djava.net.preferIPv4Stack=true \
|
||||
-outfile Bisq-$version \
|
||||
-v
|
||||
@ -134,6 +135,7 @@ $JAVA_HOME/bin/javapackager \
|
||||
-srcfiles desktop-$version-all.jar \
|
||||
-appclass bisq.desktop.app.BisqAppMain \
|
||||
-BjvmOptions=-Xss1280k \
|
||||
-BjvmOptions=-XX:MaxRAM=4g \
|
||||
-BjvmOptions=-Djava.net.preferIPv4Stack=true \
|
||||
-outfile Bisq-$version \
|
||||
-v
|
||||
|
Loading…
Reference in New Issue
Block a user