diff --git a/build.gradle b/build.gradle index 7dd1f0f..5534f60 100644 --- a/build.gradle +++ b/build.gradle @@ -169,12 +169,12 @@ tasks.register('installbinaires') { dependsOn(uberjarServer, uberjarDesktop, uberjarSyspec) doLast { println "Building binaries ..." - exec { commandLine("sh", "-c", "cd build/libs/ && native-image --no-fallback --initialize-at-build-time=kotlin.DeprecationLevel -jar provs-desktop.jar") } - exec { commandLine("sh", "-c", "cd build/libs/ && native-image --no-fallback --initialize-at-build-time=kotlin.DeprecationLevel -jar provs-server.jar") } - exec { commandLine("sh", "-c", "cd build/libs/ && native-image --no-fallback --initialize-at-build-time=kotlin.DeprecationLevel -jar provs-syspec.jar") } - exec { commandLine("sh", "-c", "sudo cp $projectRoot/build/libs/provs-desktop /usr/local/bin/") } - exec { commandLine("sh", "-c", "sudo cp $projectRoot/build/libs/provs-server /usr/local/bin/") } - exec { commandLine("sh", "-c", "sudo cp $projectRoot/build/libs/provs-syspec /usr/local/bin/") } + exec { commandLine("sh", "-c", "cd build/libs/ && native-image --no-fallback --initialize-at-build-time=kotlin.DeprecationLevel -H:+UnlockExperimentalVMOptions -H:IncludeResources=\".*\" -jar provs-desktop.jar") } + exec { commandLine("sh", "-c", "cd build/libs/ && native-image --no-fallback --initialize-at-build-time=kotlin.DeprecationLevel -H:+UnlockExperimentalVMOptions -H:IncludeResources=\".*\" -jar provs-server.jar") } + exec { commandLine("sh", "-c", "cd build/libs/ && native-image --no-fallback --initialize-at-build-time=kotlin.DeprecationLevel -H:+UnlockExperimentalVMOptions -H:IncludeResources=\".*\" -jar provs-syspec.jar") } + exec { commandLine("sh", "-c", "sudo cp build/libs/provs-desktop /usr/local/bin/") } + exec { commandLine("sh", "-c", "sudo cp build/libs/provs-server /usr/local/bin/") } + exec { commandLine("sh", "-c", "sudo cp build/libs/provs-syspec /usr/local/bin/") } } }