From ed7e849bcf003d5406abc5578e76aad5bd0fa940 Mon Sep 17 00:00:00 2001 From: ingbyr Date: Sun, 24 Jun 2018 15:40:43 +0800 Subject: [PATCH] release v0.3.1 Former-commit-id: 3784380cd9c7ebfd54da5f4f58f89239f3d73c65 [formerly c52a8703e989d660a943f19e4bbdc71097975d57] Former-commit-id: 8ff499d76afbe27254a7196aafb254007a70d582 --- README.md | 2 +- build.gradle | 4 ++-- src/main/kotlin/com/ingbyr/vdm/views/MainView.kt | 14 ++++++++------ src/main/resources/logback.xml | 9 ++------- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index fe4407e..c63e61f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Video Download Manager -![](https://img.shields.io/badge/version-0.3.0-green.svg) +![](https://img.shields.io/badge/version-0.3.1-green.svg) ![](https://img.shields.io/github/stars/ingbyr/VDM.svg) ![](https://img.shields.io/github/forks/ingbyr/VDM.svg) ![](https://img.shields.io/github/issues/ingbyr/VDM.svg) diff --git a/build.gradle b/build.gradle index b7a1a1b..b2adc13 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ group = "com.ingbyr.vdm" -version = "0.3.0" +version = "0.3.1" buildscript { ext.kotlin_version = "1.2.41" @@ -57,7 +57,7 @@ jfx { additionalAppResources = "src/main/deploy" skipMainClassScanning = true jvmProperties = ["-Dfile.encoding": "UTF-8"] - nativeReleaseVersion = "0.3.0" + nativeReleaseVersion = "0.3.1" bundler = "exe" needShortcut = true bundleArguments = [ diff --git a/src/main/kotlin/com/ingbyr/vdm/views/MainView.kt b/src/main/kotlin/com/ingbyr/vdm/views/MainView.kt index 7cb1352..83b60dd 100644 --- a/src/main/kotlin/com/ingbyr/vdm/views/MainView.kt +++ b/src/main/kotlin/com/ingbyr/vdm/views/MainView.kt @@ -8,9 +8,7 @@ import com.ingbyr.vdm.utils.VDMConfigUtils import com.ingbyr.vdm.utils.VDMOSUtils import com.ingbyr.vdm.utils.VDMUtils import com.jfoenix.controls.JFXButton -import com.jfoenix.controls.JFXCheckBox import com.jfoenix.controls.JFXProgressBar -import javafx.geometry.Insets import javafx.scene.control.* import javafx.scene.layout.ColumnConstraints import javafx.scene.layout.GridPane @@ -28,6 +26,8 @@ class MainView : View() { title = messages["ui.vdm"] } + private val vdmVersion = "0.3.1" + private val logger: Logger = LoggerFactory.getLogger(MainView::class.java) override val root: VBox by fxml("/fxml/MainView.fxml") private val controller: MainController by inject() @@ -52,7 +52,7 @@ class MainView : View() { private var menuDonate: MenuItem private var selectedTaskModel: DownloadTaskModel? = null - private lateinit var downloadTaskTableView: TableView + private var downloadTaskTableView: TableView private val cu = VDMConfigUtils(app.config) @@ -136,14 +136,16 @@ class MainView : View() { if (firstTimeUse) { // init config file // TODO update version when released new one - cu.update(VDMConfigUtils.VDM_VERSION, "0.3.0") - cu.update(VDMConfigUtils.YOUTUBE_DL_VERSION, "2018.05.18") + cu.update(VDMConfigUtils.VDM_VERSION, vdmVersion) + cu.update(VDMConfigUtils.YOUTUBE_DL_VERSION, "2018.06.19") cu.update(VDMConfigUtils.YOU_GET_VERSION, VDMUtils.UNKNOWN_VERSION) find(PreferencesView::class).openWindow()?.hide() cu.update(VDMConfigUtils.FIRST_TIME_USE, "false") - cu.saveToConfigFile() + } else { + cu.update(VDMConfigUtils.VDM_VERSION, vdmVersion) } + cu.saveToConfigFile() // debug mode val rootLogger = LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME) as ch.qos.logback.classic.Logger diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 492e904..cb0919b 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,16 +1,11 @@ - LearnLogback - - - debug - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}.%M\(%line\) - %msg%n UTF-8 @@ -27,7 +22,7 @@ - - + + \ No newline at end of file