From 14658a0c4d285ee4a2b2c7bb217762820c0aebaa Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Tue, 4 May 2021 00:15:31 +0430 Subject: [PATCH] =?UTF-8?q?be=20fancy=20about=20the=20manifest=20info=20?= =?UTF-8?q?=F0=9F=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/build.gradle.kts | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/server/build.gradle.kts b/server/build.gradle.kts index 0babd1ec..686bbe43 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -140,9 +140,12 @@ tasks { manifest { attributes( mapOf( - "Main-Class" to MainClass, //will make your jar (produced by jar task) runnable + "Main-Class" to MainClass, "Implementation-Title" to rootProject.name, - "Implementation-Version" to "$tachideskVersion-$tachideskRevision") + "Implementation-Vendor" to "The Suwayomi Project", + "Specification-Version" to tachideskVersion, + "Implementation-Version" to tachideskRevision + ) ) } } @@ -155,9 +158,9 @@ tasks { withType { kotlinOptions { freeCompilerArgs = listOf( - "-Xopt-in=kotlin.RequiresOptIn", - "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi", - "-Xopt-in=kotlinx.coroutines.InternalCoroutinesApi" + "-Xopt-in=kotlin.RequiresOptIn", + "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi", + "-Xopt-in=kotlinx.coroutines.InternalCoroutinesApi" ) } } @@ -174,10 +177,10 @@ tasks { register("windowsPackageWorkaround2") { delete( - "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/jre", - "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/lib", - "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/server.exe", - "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/Tachidesk-$tachideskVersion-$tachideskRevision-win32/Tachidesk-$tachideskVersion-$tachideskRevision-win32" + "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/jre", + "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/lib", + "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/server.exe", + "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/Tachidesk-$tachideskVersion-$tachideskRevision-win32/Tachidesk-$tachideskVersion-$tachideskRevision-win32" ) dependsOn("windowsPackageWorkaround") } @@ -190,7 +193,7 @@ tasks { register("deleteUnwantedJreDir") { delete( - "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/jdk8u282-b08-jre" + "$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32/jdk8u282-b08-jre" ) dependsOn("addJreToDistributable") } @@ -199,7 +202,7 @@ tasks { from(zipTree("$buildDir/OpenJDK8U-jre_x86-32_windows_hotspot_8u282b08.zip")) into("$buildDir/${rootProject.name}-$tachideskVersion-$tachideskRevision-win32") eachFile { - path = path.replace(".*-jre".toRegex(),"jre") + path = path.replace(".*-jre".toRegex(), "jre") } dependsOn("downloadJre") dependsOn("createExe")