diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 4fd3c8962..adda9078c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -563,9 +563,7 @@ tasks.register("signResources"){ exclude("*.so") exclude("*.dll") }.forEach{ file -> - exec { - commandLine("codesign", "--timestamp", "--force", "--deep","--options=runtime", "--entitlements", entitlements, "--sign", "Developer ID Application", file) - } + Runtime.getRuntime().exec(arrayOf("codesign", "--timestamp", "--force", "--deep", "--options=runtime", "--entitlements", entitlements, "--sign", "Developer ID Application", file.absolutePath)) } jars.forEach { file -> FileOutputStream(File(file.parentFile, file.nameWithoutExtension)).use { fos ->