@@ -232,16 +232,6 @@ tasks.register<Exec>("packageSnap"){
232
232
workingDir = distributable.destinationDir.dir(" ../" ).get().asFile
233
233
commandLine(" snapcraft" )
234
234
}
235
- tasks.register<Exec >(" uploadSnap" ){
236
- onlyIf { org.gradle.internal.os.OperatingSystem .current().isLinux }
237
- dependsOn(" packageSnap" )
238
- group = " compose desktop"
239
-
240
- val distributable = tasks.named<AbstractJPackageTask >(" createDistributable" ).get()
241
- workingDir = distributable.destinationDir.dir(" ../" ).get().asFile
242
-
243
- commandLine(" snapcraft upload ${snapname} _${version} _${snaparch} .snap" )
244
- }
245
235
tasks.register<Zip >(" zipDistributable" ){
246
236
dependsOn(" createDistributable" )
247
237
group = " compose desktop"
@@ -275,7 +265,7 @@ afterEvaluate{
275
265
){
276
266
dependsOn(" notarizeDmg" )
277
267
}
278
- dependsOn(" packageSnap" , " uploadSnap " )
268
+ dependsOn(" packageSnap" )
279
269
}
280
270
}
281
271
@@ -395,7 +385,7 @@ tasks.register<Copy>("renameWindres") {
395
385
duplicatesStrategy = DuplicatesStrategy .INCLUDE
396
386
into(dir)
397
387
}
398
- tasks.register< Exec > (" signResources" ){
388
+ tasks.register(" signResources" ){
399
389
onlyIf { org.gradle.internal.os.OperatingSystem .current().isMacOsX }
400
390
group = " compose desktop"
401
391
dependsOn(" prepareAppResources" )
@@ -427,8 +417,23 @@ tasks.register<Exec>("signResources"){
427
417
}
428
418
jars.add(tempDir)
429
419
}
420
+ fileTree(resourcesPath){
421
+ include(" **/bin/**" )
422
+ include(" **/*.jnilib" )
423
+ include(" **/*.dylib" )
424
+ include(" **/*aarch64*" )
425
+ include(" **/*x86_64*" )
426
+ exclude(" jdk-*/**" )
427
+ exclude(" *.jar" )
428
+ exclude(" *.so" )
429
+ exclude(" *.dll" )
430
+ }.forEach{ file ->
431
+ println (" signign $file " )
432
+ exec {
433
+ commandLine(" codesign" , " --timestamp" , " --force" , " --deep" , " --sign" , " Developer ID Application" , file)
434
+ }
435
+ }
430
436
}
431
- commandLine(" codesign" ," --timestamp" , " --force" ," --deep" , " --sign" , " Developer ID Application" , resourcesPath.get().asFile)
432
437
doLast {
433
438
jars.forEach { file ->
434
439
zipTo(file.resolve(file.nameWithoutExtension), file)
0 commit comments