File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -234,4 +234,24 @@ afterEvaluate {
234234 " renameWindres"
235235 )
236236 }
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" )
237257}
You can’t perform that action at this time.
0 commit comments