Skip to content

Commit

Permalink
Enabled support for arm64. (#517)
Browse files Browse the repository at this point in the history
* Enabled support for arm64.

* Use Maven for appbundler.
  • Loading branch information
jonwltn authored Oct 25, 2024
1 parent 1752e22 commit 0732532
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions kse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ java {

gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS

configurations {
appbundler
}

dependencies {
implementation('org.bouncycastle:bcpkix-jdk18on:1.78.1')
implementation('commons-io:commons-io:2.15.1')
Expand All @@ -114,6 +118,7 @@ dependencies {
implementation('org.openjdk.nashorn:nashorn-core:15.4')
implementation('com.fasterxml.jackson.jr:jackson-jr-objects:2.17.0')
implementation('com.fasterxml.jackson.jr:jackson-jr-annotation-support:2.17.0')
appbundler('com.evolvedbinary.appbundler:appbundler:1.3.1')

if (gradle.startParameter.taskNames.any { ['innosetup', 'zip'].contains(it) }) {
implementation('org.openjfx:javafx-base:17.0.9:win')
Expand Down Expand Up @@ -333,11 +338,7 @@ tasks.register('innosetup') {
tasks.register('appbundler') {
dependsOn jar, copyDependencies
doLast {
ant.taskdef(name: 'bundleapp', classname: 'com.oracle.appbundler.AppBundlerTask') {
classpath {
fileset(dir: 'lib', includes: 'appbundler-1.0ea.jar')
}
}
ant.taskdef(name: 'bundleapp', classname: 'com.oracle.appbundler.AppBundlerTask', classpath: configurations.appbundler.asPath)
mkdir appBundleDir
ant.bundleapp(outputdirectory: appBundleDir,
name: appName,
Expand All @@ -353,6 +354,7 @@ tasks.register('appbundler') {
) {
classpath(dir: dependenciesDir)
classpath(file: jar.archiveFile.get().asFile.getAbsolutePath())
arch(name: "arm64")
arch(name: "x86_64")

jlink(runtime: System.properties.'java.home') {
Expand Down
Binary file removed kse/lib/appbundler-1.0ea.jar
Binary file not shown.

0 comments on commit 0732532

Please sign in to comment.