We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca4271d commit 1f62948Copy full SHA for 1f62948
app/build.gradle.kts
@@ -234,4 +234,24 @@ afterEvaluate {
234
"renameWindres"
235
)
236
}
237
+ tasks.register("setExecutablePermissions") {
238
+ description = "Sets executable permissions on binaries in Processing.app resources"
239
+ group = "compose desktop"
240
+
241
+ doLast {
242
+ val resourcesPath = layout.buildDirectory.dir("compose/binaries")
243
+ fileTree(resourcesPath) {
244
+ include("**/resources/**/bin/**")
245
+ include("**/resources/**/*.sh")
246
+ include("**/resources/**/*.dylib")
247
+ include("**/resources/**/*.so")
248
+ include("**/resources/**/*.exe")
249
+ }.forEach { file ->
250
+ if (file.isFile) {
251
+ file.setExecutable(true, false)
252
+ }
253
254
255
256
+ tasks.findByName("createDistributable")?.finalizedBy("setExecutablePermissions")
257
0 commit comments