diff --git a/kse/build.gradle b/kse/build.gradle index adf127871..c36663525 100644 --- a/kse/build.gradle +++ b/kse/build.gradle @@ -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') @@ -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') @@ -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, @@ -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') { diff --git a/kse/lib/appbundler-1.0ea.jar b/kse/lib/appbundler-1.0ea.jar deleted file mode 100644 index 67d631583..000000000 Binary files a/kse/lib/appbundler-1.0ea.jar and /dev/null differ