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',