From a27df90fc5938652cbe3ee4f31e6a1cc83d0c5e9 Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Mon, 23 Aug 2021 11:44:10 +0800 Subject: [PATCH] fix: missing microsoft auth id --- HMCL/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HMCL/build.gradle b/HMCL/build.gradle index 2007f38a7..2d9522fa9 100644 --- a/HMCL/build.gradle +++ b/HMCL/build.gradle @@ -36,6 +36,7 @@ def buildnumber = System.getenv("BUILD_NUMBER") ?: dev ?: "SNAPSHOT" if (System.getenv("BUILD_NUMBER") != null && System.getenv("BUILD_NUMBER_OFFSET") != null) buildnumber = (Integer.parseInt(System.getenv("BUILD_NUMBER")) - Integer.parseInt(System.getenv("BUILD_NUMBER_OFFSET"))).toString() def versionroot = System.getenv("VERSION_ROOT") ?: "3.3" +def microsoftAuthId = System.getenv("MICROSOFT_AUTH_ID") ?: "" def microsoftAuthSecret = System.getenv("MICROSOFT_AUTH_SECRET") ?: "" version = versionroot + '.' + buildnumber @@ -125,6 +126,7 @@ shadowJar { 'Main-Class': mainClassName, 'Multi-Release': 'true', 'Implementation-Version': project.version, + 'Microsoft-Auth-Id': microsoftAuthId, 'Microsoft-Auth-Secret': microsoftAuthSecret, 'Class-Path': 'pack200.jar', 'Add-Opens': [