|
|
@ -20,6 +20,10 @@ if(System.getProperty("os.arch") == "aarch64") { |
|
|
|
targetName = "-" + osArch |
|
|
|
} |
|
|
|
def headless = "true".equals(System.getProperty("java.awt.headless")) || GraphicsEnvironment.isHeadless() |
|
|
|
def sparrowBuild = "" |
|
|
|
if(headless) { |
|
|
|
sparrowBuild = "Server" |
|
|
|
} |
|
|
|
|
|
|
|
group "com.sparrowwallet" |
|
|
|
version "${sparrowVersion}" |
|
|
@ -224,7 +228,7 @@ jlink { |
|
|
|
addExtraDependencies("javafx") |
|
|
|
jpackage { |
|
|
|
imageName = "Sparrow" |
|
|
|
installerName = "Sparrow" |
|
|
|
installerName = "Sparrow${sparrowBuild}" |
|
|
|
appVersion = "${sparrowVersion}" |
|
|
|
skipInstaller = os.macOsX || properties.skipInstallers |
|
|
|
imageOptions = [] |
|
|
@ -251,7 +255,7 @@ task removeGroupWritePermission(type: Exec) { |
|
|
|
} |
|
|
|
|
|
|
|
task packageZipDistribution(type: Zip) { |
|
|
|
archiveFileName = "Sparrow-${sparrowVersion}.zip" |
|
|
|
archiveFileName = "Sparrow${sparrowBuild}-${sparrowVersion}.zip" |
|
|
|
destinationDirectory = file("$buildDir/jpackage") |
|
|
|
from("$buildDir/jpackage/") { |
|
|
|
include "Sparrow/**" |
|
|
@ -261,7 +265,7 @@ task packageZipDistribution(type: Zip) { |
|
|
|
|
|
|
|
task packageTarDistribution(type: Tar) { |
|
|
|
dependsOn removeGroupWritePermission |
|
|
|
archiveFileName = "sparrow-${sparrowVersion}.tar.gz" |
|
|
|
archiveFileName = "sparrow${sparrowBuild.toLowerCase()}-${sparrowVersion}.tar.gz" |
|
|
|
destinationDirectory = file("$buildDir/jpackage") |
|
|
|
compression = Compression.GZIP |
|
|
|
from("$buildDir/jpackage/") { |
|
|
|