mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-14 14:26:43 -04:00
fix: missing microsoft auth id
This commit is contained in:
parent
c18b0510bc
commit
a27df90fc5
@ -36,6 +36,7 @@ def buildnumber = System.getenv("BUILD_NUMBER") ?: dev ?: "SNAPSHOT"
|
|||||||
if (System.getenv("BUILD_NUMBER") != null && System.getenv("BUILD_NUMBER_OFFSET") != null)
|
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()
|
buildnumber = (Integer.parseInt(System.getenv("BUILD_NUMBER")) - Integer.parseInt(System.getenv("BUILD_NUMBER_OFFSET"))).toString()
|
||||||
def versionroot = System.getenv("VERSION_ROOT") ?: "3.3"
|
def versionroot = System.getenv("VERSION_ROOT") ?: "3.3"
|
||||||
|
def microsoftAuthId = System.getenv("MICROSOFT_AUTH_ID") ?: ""
|
||||||
def microsoftAuthSecret = System.getenv("MICROSOFT_AUTH_SECRET") ?: ""
|
def microsoftAuthSecret = System.getenv("MICROSOFT_AUTH_SECRET") ?: ""
|
||||||
version = versionroot + '.' + buildnumber
|
version = versionroot + '.' + buildnumber
|
||||||
|
|
||||||
@ -125,6 +126,7 @@ shadowJar {
|
|||||||
'Main-Class': mainClassName,
|
'Main-Class': mainClassName,
|
||||||
'Multi-Release': 'true',
|
'Multi-Release': 'true',
|
||||||
'Implementation-Version': project.version,
|
'Implementation-Version': project.version,
|
||||||
|
'Microsoft-Auth-Id': microsoftAuthId,
|
||||||
'Microsoft-Auth-Secret': microsoftAuthSecret,
|
'Microsoft-Auth-Secret': microsoftAuthSecret,
|
||||||
'Class-Path': 'pack200.jar',
|
'Class-Path': 'pack200.jar',
|
||||||
'Add-Opens': [
|
'Add-Opens': [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user