Skip to content

Commit

Permalink
fixed versions and icons
Browse files Browse the repository at this point in the history
  • Loading branch information
fr33r4ng3r committed Oct 30, 2021
1 parent 496d36e commit 6c77c71
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.io.FileInputStream
import java.util.Properties

plugins {
kotlin("jvm") version "1.5.31"
Expand Down Expand Up @@ -63,12 +65,16 @@ application {
mainClass.set("incamoon.eso.adeps2.Main")
}

val versionPropertyFile = FileInputStream("src/main/resources/version.properties")
val buildProperties = Properties()
buildProperties.load(versionPropertyFile)

jlink {
options.addAll("--strip-debug", "--compress", "2", "--no-header-files", "--no-man-pages")
addExtraDependencies("javafx")
launcher {
name = "eso-addon-deps-2"
version = "${project.version}"
version = buildProperties.getProperty("version")
}
jpackage {
imageOptions.addAll(arrayOf("--resource-dir", "${projectDir}\\jpackage", "--verbose"))
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions src/main/kotlin/incamoon/eso/adeps2/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import javafx.application.Application
import javafx.fxml.FXMLLoader
import javafx.scene.Parent
import javafx.scene.Scene
import javafx.scene.image.Image
import javafx.scene.text.Font
import javafx.stage.Stage
import javafx.stage.StageStyle
Expand Down Expand Up @@ -33,14 +34,13 @@ class Main : Application() {

val root = loader.load<Parent>()

// val controller: Controller = loader.getController()

val scene = Scene(root)

// val props = Properties()
stage.title = "The Elder Scrolls Online Addon Dependency Analyser by fr33r4ng3r)"
val props = Properties()
props.load(javaClass.getResourceAsStream("/version.properties"))
stage.title = "The Elder Scrolls Online Addon Dependency Analyser by fr33r4ng3r version ${props.getProperty("version")})"
stage.scene = scene
// stage.icons.add(Image(Mayhem::class.java.getResourceAsStream("/fr33r4ng3r.png")))
stage.icons.add(Image(Main::class.java.getResourceAsStream("/fr33r4ng3r.png")))

ResizeHelper.addResizeListener(stage)

Expand Down
Binary file added src/main/resources/fr33r4ng3r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=1.0.2

0 comments on commit 6c77c71

Please sign in to comment.