mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-11 16:29:08 +01:00
build type
This commit is contained in:
parent
d2f6a33f0a
commit
4ef32d8037
2
.github/workflows/build_push.yml
vendored
2
.github/workflows/build_push.yml
vendored
@ -61,6 +61,8 @@ jobs:
|
||||
|
||||
- name: Build and copy webUI, Build Jar
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
env:
|
||||
TachideskBuildType: "Preview"
|
||||
with:
|
||||
build-root-directory: master
|
||||
wrapper-directory: master
|
||||
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -60,6 +60,8 @@ jobs:
|
||||
|
||||
- name: Build and copy webUI, Build Jar
|
||||
uses: eskatos/gradle-command-action@v1
|
||||
env:
|
||||
TachideskBuildType: "Stable"
|
||||
with:
|
||||
build-root-directory: master
|
||||
wrapper-directory: master
|
||||
|
@ -109,16 +109,14 @@ val tachideskRevision = Runtime
|
||||
}
|
||||
|
||||
buildConfig {
|
||||
appName = rootProject.name
|
||||
clsName = "BuildConfig"
|
||||
packageName = "ir.armor.tachidesk.server"
|
||||
version = tachideskVersion
|
||||
|
||||
|
||||
buildConfigField("String", "name", rootProject.name) // alias for BuildConfig.NAME
|
||||
buildConfigField("String", "version", tachideskVersion) // alias for BuildConfig.VERSION
|
||||
buildConfigField("String", "revision", tachideskRevision)
|
||||
buildConfigField("boolean", "debug", project.hasProperty("debugApp").toString())
|
||||
buildConfigField("String", "NAME", rootProject.name)
|
||||
buildConfigField("String", "VERSION", tachideskVersion)
|
||||
buildConfigField("String", "REVISION", tachideskRevision)
|
||||
buildConfigField("String", "BUILD_TYPE", if (System.getenv("TachideskBuildType") == "Stable") "Stable" else "Preview")
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
@ -40,7 +40,7 @@ val systemTrayInstance by lazy { systemTray() }
|
||||
val androidCompat by lazy { AndroidCompat() }
|
||||
|
||||
fun applicationSetup() {
|
||||
logger.info("Running Tachidesk ${BuildConfig.version} revision ${BuildConfig.revision}")
|
||||
logger.info("Running Tachidesk ${BuildConfig.VERSION} revision ${BuildConfig.REVISION}")
|
||||
|
||||
// Application dirs
|
||||
val applicationDirs = ApplicationDirs()
|
||||
|
@ -12,13 +12,15 @@ import ir.armor.tachidesk.server.BuildConfig
|
||||
data class AboutDataClass(
|
||||
val version: String,
|
||||
val revision: String,
|
||||
val buildType: String,
|
||||
)
|
||||
|
||||
object About {
|
||||
fun getAbout(): AboutDataClass {
|
||||
return AboutDataClass(
|
||||
BuildConfig.version,
|
||||
BuildConfig.revision,
|
||||
BuildConfig.VERSION,
|
||||
BuildConfig.REVISION,
|
||||
BuildConfig.BUILD_TYPE,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -22,9 +22,9 @@ object SystemTray {
|
||||
// ref: https://github.com/dorkbox/SystemTray/blob/master/test/dorkbox/TestTray.java
|
||||
SystemTray.DEBUG = serverConfig.debugLogsEnabled
|
||||
|
||||
CacheUtil.clear(BuildConfig.name)
|
||||
CacheUtil.clear(BuildConfig.NAME)
|
||||
|
||||
val systemTray = SystemTray.get(BuildConfig.name) ?: return null
|
||||
val systemTray = SystemTray.get(BuildConfig.NAME) ?: return null
|
||||
val mainMenu = systemTray.menu
|
||||
|
||||
mainMenu.add(
|
||||
|
Loading…
x
Reference in New Issue
Block a user