Skip to content

Commit

Permalink
Remove references to legacy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Jan 7, 2025
1 parent 2855c07 commit 4a4969e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions distribution/packages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,20 @@ Closure commonPackageConfig(String type, boolean jdk, String architecture) {
// Deb convention uses a '_' for final separator before architecture, rpm uses a '.'
if (type == 'deb') {
archiveFileName.value(project.provider({ "${destinationDirectory.get()}/${packageName}-min_${project.version}${jdkString}_${archString}.${type}" }))
String packagingFiles = "build/packaging/${jdk ? '' : 'no-jdk-'}${type}"
String scripts = "${packagingFiles}/debian"
preInstall file("${scripts}/preinst")
postInstall file("${scripts}/postinst")
preUninstall file("${scripts}/prerm")
postUninstall file("${scripts}/postrm")
} else {
archiveFileName.value(project.provider({ "${destinationDirectory.get()}/${packageName}-min-${project.version}${jdkString}.${archString}.${type}" }))
}

String packagingFiles = "build/packaging/${jdk ? '' : 'no-jdk-'}${type}"

String scripts = "${packagingFiles}/scripts"
preInstall file("${scripts}/preinst")
postInstall file("${scripts}/postinst")
preUninstall file("${scripts}/prerm")
postUninstall file("${scripts}/postrm")
if (type == 'rpm') {
postTrans file("${scripts}/posttrans")
}
// if (type == 'rpm') {
// postTrans file("${scripts}/posttrans")
// }

// top level "into" directive is not inherited from ospackage for some reason, so we must
// specify it again explicitly for copying common files
Expand Down

0 comments on commit 4a4969e

Please sign in to comment.