Skip to content
Snippets Groups Projects
Commit 46ca81e6 authored by akwizgran's avatar akwizgran
Browse files

Merge branch 'arm64-jar' into 'main'

Gradle build task to create ARM64 Linux JAR

See merge request !179
parents fc14dd3f fdad1a19
No related branches found
No related tags found
1 merge request!179Gradle build task to create ARM64 Linux JAR
Pipeline #15346 passed
......@@ -90,10 +90,14 @@ any hardware supporting Java (e.g. unix server, raspberry pi) could be added.
## Server CLI version
A fat JAR for running on a GNU/Linux server can be compiled with
A fat JAR for running on a x86_64 GNU/Linux server can be compiled with
./gradlew x86LinuxJar
And also ARM64 with
./gradlew aarch64LinuxJar
## Donate
[![Donate using Liberapay](https://briarproject.org/img/liberapay.svg)](https://liberapay.com/Briar/donate) [![Flattr this](https://briarproject.org/img/flattr-badge-large.png "Flattr this")](https://flattr.com/t/592836/)
Bitcoin and BCH: 1NZCKkUCtJV2U2Y9hDb9uq8S7ksFCFGR6K
......
......@@ -109,7 +109,7 @@ void jarFactory(Jar jarTask, os, architecture, configuration) {
destStream.close()
srcJarFile.close()
println 'Building ' + jarArchitecture + ' version has finished'
println 'JAR: mailbox-cli/build/libs/mailbox-cli-linux-x86_64.jar'
println 'JAR: mailbox-cli/build/libs/mailbox-cli-' + jarArchitecture + '.jar'
}
}
......@@ -119,6 +119,12 @@ task x86LinuxJar(type: Jar) {
jarFactory(it, 'linux', 'x86_64', configurations.runtimeClasspath)
}
task aarch64LinuxJar(type: Jar) {
group = "Build"
description = "Assembles a runnable fat jar for AArch64 Linux"
jarFactory(it, 'linux', 'aarch64', configurations.runtimeClasspath)
}
tasks.withType(Test) {
systemProperty 'java.library.path', 'libs'
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment