@@ -50,7 +50,7 @@ compose.desktop {
50
50
51
51
nativeDistributions{
52
52
modules(" jdk.jdi" , " java.compiler" , " jdk.accessibility" )
53
- targetFormats(TargetFormat .Dmg , TargetFormat .Msi , TargetFormat .Deb )
53
+ targetFormats(TargetFormat .Dmg , TargetFormat .Msi , TargetFormat .Deb , TargetFormat . Pkg )
54
54
packageName = " Processing"
55
55
56
56
macOS{
@@ -162,23 +162,23 @@ tasks.register<Exec>("packageCustomDmg"){
162
162
app
163
163
)
164
164
}
165
- tasks.register<Exec >(" packagePkg" ){
166
- onlyIf { org.gradle.internal.os.OperatingSystem .current().isMacOsX }
167
- dependsOn(" createDistributable" )
168
- group = " compose desktop"
169
- val distributable = tasks.named<AbstractJPackageTask >(" createDistributable" ).get()
170
- val app = distributable.destinationDir.get().file(" ${distributable.packageName.get()} .app" ).asFile
171
- val target = app.parentFile.parentFile.resolve(" pkg/${distributable.packageName.get()} -$version .pkg" )
172
- target.parentFile.mkdirs()
173
-
174
- commandLine(" pkgbuild" ,
175
- " --install-location" , " /Applications" ,
176
- " --identifier" , " ${rootProject.group} .app" ,
177
- " --version" , version,
178
- " --component" , app,
179
- target
180
- )
181
- }
165
+ // tasks.register<Exec>("packagePkg"){
166
+ // onlyIf { org.gradle.internal.os.OperatingSystem.current().isMacOsX }
167
+ // dependsOn("createDistributable")
168
+ // group = "compose desktop"
169
+ // val distributable = tasks.named<AbstractJPackageTask>("createDistributable").get()
170
+ // val app = distributable.destinationDir.get().file("${distributable.packageName.get()}.app").asFile
171
+ // val target = app.parentFile.parentFile.resolve("pkg/${distributable.packageName.get()}-$version.pkg")
172
+ // target.parentFile.mkdirs()
173
+ //
174
+ // commandLine("pkgbuild",
175
+ // "--install-location", "/Applications",
176
+ // "--identifier", "${rootProject.group}.app",
177
+ // "--version", version,
178
+ // "--component", app,
179
+ // target
180
+ // )
181
+ // }
182
182
183
183
tasks.register<Exec >(" packageCustomMsi" ){
184
184
onlyIf { org.gradle.internal.os.OperatingSystem .current().isWindows }
@@ -223,21 +223,25 @@ tasks.register("generateSnapConfiguration"){
223
223
command: opt/processing/bin/Processing
224
224
desktop: opt/processing/lib/processing-Processing.desktop
225
225
environment:
226
- LD_LIBRARY_PATH: ${' $' } SNAP /lib:${' $' } LD_LIBRARY_PATH
226
+ LD_LIBRARY_PATH: ${' $' } SNAPopt/processing/lib/runtime /lib:${' $' } LD_LIBRARY_PATH
227
227
plugs:
228
228
- desktop
229
229
- desktop-legacy
230
230
- wayland
231
231
- x11
232
+ - network
232
233
233
234
parts:
234
235
processing:
235
236
plugin: dump
236
237
source: deb/processing_$version -1_$snaparch .deb
237
238
source-type: deb
239
+ stage-packages:
240
+ - openjdk-17-jdk
238
241
override-prime: |
239
242
snapcraftctl prime
240
243
chmod -R +x opt/processing/lib/app/resources/jdk-*
244
+ rm -vf usr/lib/jvm/java-17-openjdk-*/lib/security/cacerts
241
245
""" .trimIndent()
242
246
dir.file(" ../snapcraft.yaml" ).asFile.writeText(content)
243
247
}
0 commit comments