mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Update build.gradle.kts
This commit is contained in:
@@ -234,4 +234,24 @@ afterEvaluate {
|
||||
"renameWindres"
|
||||
)
|
||||
}
|
||||
tasks.register("setExecutablePermissions") {
|
||||
description = "Sets executable permissions on binaries in Processing.app resources"
|
||||
group = "compose desktop"
|
||||
|
||||
doLast {
|
||||
val resourcesPath = layout.buildDirectory.dir("compose/binaries")
|
||||
fileTree(resourcesPath) {
|
||||
include("**/resources/**/bin/**")
|
||||
include("**/resources/**/*.sh")
|
||||
include("**/resources/**/*.dylib")
|
||||
include("**/resources/**/*.so")
|
||||
include("**/resources/**/*.exe")
|
||||
}.forEach { file ->
|
||||
if (file.isFile) {
|
||||
file.setExecutable(true, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tasks.findByName("createDistributable")?.finalizedBy("setExecutablePermissions")
|
||||
}
|
||||
Reference in New Issue
Block a user