feat(build): build with version type.
This commit is contained in:
@@ -38,6 +38,7 @@ if (System.getenv("BUILD_NUMBER") != null && System.getenv("BUILD_NUMBER_OFFSET"
|
|||||||
def versionroot = System.getenv("VERSION_ROOT") ?: "3.4"
|
def versionroot = System.getenv("VERSION_ROOT") ?: "3.4"
|
||||||
def microsoftAuthId = System.getenv("MICROSOFT_AUTH_ID") ?: ""
|
def microsoftAuthId = System.getenv("MICROSOFT_AUTH_ID") ?: ""
|
||||||
def microsoftAuthSecret = System.getenv("MICROSOFT_AUTH_SECRET") ?: ""
|
def microsoftAuthSecret = System.getenv("MICROSOFT_AUTH_SECRET") ?: ""
|
||||||
|
def versionType = System.getenv("VERSION_TYPE") ?: "nightly"
|
||||||
version = versionroot + '.' + buildnumber
|
version = versionroot + '.' + buildnumber
|
||||||
|
|
||||||
mainClassName = 'org.jackhuang.hmcl.Main'
|
mainClassName = 'org.jackhuang.hmcl.Main'
|
||||||
@@ -129,6 +130,7 @@ shadowJar {
|
|||||||
'Implementation-Version': project.version,
|
'Implementation-Version': project.version,
|
||||||
'Microsoft-Auth-Id': microsoftAuthId,
|
'Microsoft-Auth-Id': microsoftAuthId,
|
||||||
'Microsoft-Auth-Secret': microsoftAuthSecret,
|
'Microsoft-Auth-Secret': microsoftAuthSecret,
|
||||||
|
'Build-Channel': versionType,
|
||||||
'Class-Path': 'pack200.jar',
|
'Class-Path': 'pack200.jar',
|
||||||
'Add-Opens': [
|
'Add-Opens': [
|
||||||
'java.base/java.lang',
|
'java.base/java.lang',
|
||||||
|
|||||||
Reference in New Issue
Block a user