Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ tasks.register("run", JavaExec) {

setIgnoreExitValue(true)

jvmArgs += "-Dfile.encoding=UTF-8"

Comment thread
isHarryh marked this conversation as resolved.
if (OperatingSystem.current() == OperatingSystem.MAC_OS) {
jvmArgs += "-XstartOnFirstThread" // Required to run on macOS
}
Expand Down Expand Up @@ -147,7 +149,8 @@ tasks.register("jpackage", Exec) {
'--app-version', project.version,
'--main-class', mainClassName,
'--main-jar', jar.archiveFile.get().asFile.getName(),
'--runtime-image', "${jlinkDir}/runtime"
'--runtime-image', "${jlinkDir}/runtime",
'--java-options', '-Dfile.encoding=UTF-8'
]
if (osName.contains('windows')) {
commands << '--icon'
Expand Down