Skip to content

Commit

Permalink
Add gradle tasks to build both intel & apple silicon packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Dec 3, 2024
1 parent ce6a9e1 commit fade54b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,20 @@ tasks.register('createMacAppWithJavaDistZip', Zip) {
}
}

tasks.register('createMacAppIntelWithJavaDistZip', Zip) {
dependsOn createMacAppDist
archiveFileName = "IGV_MacAppIntel_${version}_WithJava.zip"
with copySpec { from jdkBundleMacIntel into "IGV_${version}.app/Contents/jdk-21" }
from("${buildDir}/IGV-MacApp-dist")

doLast {
if (jdkBundleMacIntel == "") {
throw new GradleException("Required property not set: jdkBundleMacIntel");
}
//project.exec { commandLine('chmod', '775', createMacAppWithJavaDistZip.archiveFileName) }
}
}

tasks.register('createWinDist', Copy) {
dependsOn createDist
with copySpec {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tsaurl=not_set
# Location of JDKs to include in distribution bundles; ignored for developer builds
jdkBundleLinux=
jdkBundleMac=
jdkBundleMacIntel=
jdkBundleWindows=
# Path to NSIS packaging tool for Windows EXE installer; ignored for developer builds
makensisCommand=
Expand Down

0 comments on commit fade54b

Please sign in to comment.