From 8309435011ad79b24186419875845481d697587d Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 28 Nov 2023 00:04:39 +0100 Subject: [PATCH] build: Add manifest headers --- build.gradle.kts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 979ddfff..85deb26d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,6 +30,22 @@ kotlin { jvmToolchain(11) } +tasks.withType(Jar::class) { + exclude("app/revanced/meta") + + manifest { + attributes["Name"] = "ReVanced Patches" + attributes["Description"] = "Patches for ReVanced." + attributes["Version"] = version + attributes["Timestamp"] = System.currentTimeMillis().toString() + attributes["Source"] = "git@github.com:revanced/revanced-patches.git" + attributes["Author"] = "ReVanced" + attributes["Contact"] = "contact@revanced.app" + attributes["Origin"] = "https://revanced.app" + attributes["License"] = "GNU General Public License v3.0" + } +} + tasks { register("generateBundle") { description = "Generate dex files from build and bundle them in the jar file"