From ee8981562817b19330973ee10779dba92dff218d Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Tue, 28 Sep 2021 17:09:19 +0800 Subject: [PATCH] feat(build): build with version type. --- HMCL/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HMCL/build.gradle b/HMCL/build.gradle index 1d98226c4..854ddaaf5 100644 --- a/HMCL/build.gradle +++ b/HMCL/build.gradle @@ -38,6 +38,7 @@ if (System.getenv("BUILD_NUMBER") != null && System.getenv("BUILD_NUMBER_OFFSET" def versionroot = System.getenv("VERSION_ROOT") ?: "3.4" def microsoftAuthId = System.getenv("MICROSOFT_AUTH_ID") ?: "" def microsoftAuthSecret = System.getenv("MICROSOFT_AUTH_SECRET") ?: "" +def versionType = System.getenv("VERSION_TYPE") ?: "nightly" version = versionroot + '.' + buildnumber mainClassName = 'org.jackhuang.hmcl.Main' @@ -129,6 +130,7 @@ shadowJar { 'Implementation-Version': project.version, 'Microsoft-Auth-Id': microsoftAuthId, 'Microsoft-Auth-Secret': microsoftAuthSecret, + 'Build-Channel': versionType, 'Class-Path': 'pack200.jar', 'Add-Opens': [ 'java.base/java.lang',