Skip to content

Commit

Permalink
Update macos packaging logic to avoid duplicate paths after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
benty-amzn committed Jul 19, 2022
1 parent 9840093 commit 6ef8d61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installers/mac/pkg/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ task setupDirectories {
doLast {
exec {
workingDir buildRoot
commandLine "mkdir", "-p", "pkgroot/Library/Java/JavaVirtualMachines"
commandLine "mkdir", "-p", "pkgroot/"
}

exec {
workingDir buildRoot
commandLine "cp", "-Rf", "amazon-corretto-${project.version.major}.jdk", "pkgroot/Library/Java/JavaVirtualMachines/"
commandLine "cp", "-Rf", "amazon-corretto-${project.version.major}.jdk", "pkgroot/"
}

exec {
Expand All @@ -102,7 +102,7 @@ task generateInstaller {
"--version", project.version.full,
"--ownership", "recommended",
"--scripts", "resources",
"--install-location", "/Library/Java/JavaVirtualMachines/amazon-corretto-${project.version.major}.jdk",
"--install-location", "/Library/Java/JavaVirtualMachines/",
"build/components/amazon-corretto-${project.version.major}.jdk.pkg"
}

Expand Down

0 comments on commit 6ef8d61

Please sign in to comment.