remove offline alpha build

This commit is contained in:
alexcrea 2026-07-16 19:39:54 +02:00
parent f2f39dc326
commit 5405c6699a
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C

View file

@ -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")
} }
} }