mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
remove offline alpha build
This commit is contained in:
parent
f2f39dc326
commit
5405c6699a
1 changed files with 5 additions and 3 deletions
|
|
@ -391,13 +391,15 @@ fun changelog(isOnline: Boolean): String {
|
||||||
|
|
||||||
hangarPublish {
|
hangarPublish {
|
||||||
|
|
||||||
fun HangarPublication.configure(isOnline: Boolean, devChannel: String, releaseChannel: String) {
|
fun HangarPublication.configure(isOnline: Boolean, devChannel: String?, releaseChannel: String) {
|
||||||
var versionName = effectiveVersion
|
var versionName = effectiveVersion
|
||||||
if(isPreRelease) versionName+= "-pre"
|
if(isPreRelease) versionName+= "-pre"
|
||||||
if(!isOnline) versionName+= "-offline"
|
if(!isOnline) versionName+= "-offline"
|
||||||
|
|
||||||
version.set(versionName)
|
version.set(versionName)
|
||||||
channel.set(if (isDevBuild || isPreRelease) devChannel else releaseChannel)
|
var releaseChannel = if (isDevBuild || isPreRelease) devChannel else releaseChannel
|
||||||
|
if(releaseChannel == null) return
|
||||||
|
channel.set(channel)
|
||||||
|
|
||||||
changelog.set(changelog(isOnline))
|
changelog.set(changelog(isOnline))
|
||||||
id.set("CustomAnvil")
|
id.set("CustomAnvil")
|
||||||
|
|
@ -449,7 +451,7 @@ hangarPublish {
|
||||||
}
|
}
|
||||||
|
|
||||||
publications.register("offline") {
|
publications.register("offline") {
|
||||||
configure(false, "OfflineSnapshot", "OfflineRelease")
|
configure(false, null, "OfflineRelease")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue