Skip to content

Commit

Permalink
Add version number to log and title.
Browse files Browse the repository at this point in the history
  • Loading branch information
gyakkun committed Nov 22, 2023
1 parent 012b785 commit ab473d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kotlin.code.style=official
kotlin.version=1.9.20
compose.version=1.5.10
app.version=1.2.6
app.version=1.3.0
5 changes: 3 additions & 2 deletions src/jvmMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.ui.window.FrameWindowScope
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import org.jetbrains.skiko.MainUIDispatcher
Expand All @@ -25,10 +24,12 @@ object LoggingHelper {
val LOGGER = LoggerFactory.getLogger(LoggingHelper.javaClass)
}

val version = System.getProperty("jpackage.app-version", "DEV")

fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "QQ MHT2HTML",
title = "QQ MHT2HTML $version",
icon = painterResource("/drawables/qq-mht2html.png"),
) {
val windowScope = this
Expand Down
1 change: 1 addition & 0 deletions src/jvmMain/kotlin/Mht2Html.kt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class Mht2Html(

@OptIn(DelicateCoroutinesApi::class)
fun doJob() = CoroutineScope(Dispatchers.IO).launch {
LOGGER.info("Job started. QQ-MHT2HTML - $version")
LOGGER.info("Start to process input file: $fileLocation")
LOGGER.info("Output location: $fileOutputPath")
LOGGER.info("Img folder: $imgOutputPath")
Expand Down

0 comments on commit ab473d2

Please sign in to comment.