Skip to content

Commit 2eefc39

Browse files
committed
General builds bugfix
1 parent 4985206 commit 2eefc39

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

app/build.gradle.kts

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -162,23 +162,6 @@ tasks.register<Exec>("packageCustomDmg"){
162162
app
163163
)
164164
}
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-
//}
182165

183166
tasks.register<Exec>("packageCustomMsi"){
184167
onlyIf { org.gradle.internal.os.OperatingSystem.current().isWindows }
@@ -407,7 +390,11 @@ tasks.register<Copy>("renameWindres") {
407390
into(dir)
408391
}
409392
tasks.register("signResources"){
410-
onlyIf { org.gradle.internal.os.OperatingSystem.current().isMacOsX }
393+
onlyIf {
394+
org.gradle.internal.os.OperatingSystem.current().isMacOsX
395+
&&
396+
compose.desktop.application.nativeDistributions.macOS.signing.sign.get()
397+
}
411398
group = "compose desktop"
412399
dependsOn(
413400
"includeCore",

0 commit comments

Comments
 (0)