build: сборка под windows
This commit is contained in:
34
build.gradle
34
build.gradle
@@ -3,6 +3,7 @@ plugins {
|
|||||||
id("application")
|
id("application")
|
||||||
id("org.openjfx.javafxplugin") version("0.1.0")
|
id("org.openjfx.javafxplugin") version("0.1.0")
|
||||||
id("com.github.johnrengelman.shadow") version("8.1.1")
|
id("com.github.johnrengelman.shadow") version("8.1.1")
|
||||||
|
id("edu.sc.seis.launch4j") version("3.0.6")
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapper {
|
wrapper {
|
||||||
@@ -22,23 +23,44 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
lombokVersion = "1.18.34"
|
||||||
|
javaFxVersion = "21"
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("org.jetbrains:annotations:23.0.0")
|
compileOnly("org.jetbrains:annotations:23.0.0")
|
||||||
annotationProcessor("org.projectlombok:lombok:1.18.34")
|
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
|
||||||
compileOnly("org.projectlombok:lombok:1.18.34")
|
compileOnly("org.projectlombok:lombok:$lombokVersion")
|
||||||
|
|
||||||
|
["linux", "win"].forEach {
|
||||||
|
implementation("org.openjfx:javafx-base:$javaFxVersion:$it")
|
||||||
|
implementation("org.openjfx:javafx-controls:$javaFxVersion:$it")
|
||||||
|
implementation("org.openjfx:javafx-fxml:$javaFxVersion:$it")
|
||||||
|
implementation("org.openjfx:javafx-graphics:$javaFxVersion:$it")
|
||||||
|
}
|
||||||
|
|
||||||
implementation("org.xerial:sqlite-jdbc:3.49.1.0")
|
implementation("org.xerial:sqlite-jdbc:3.49.1.0")
|
||||||
implementation("com.github.luben:zstd-jni:1.5.7-1")
|
implementation("com.github.luben:zstd-jni:1.5.7-1")
|
||||||
}
|
}
|
||||||
|
|
||||||
javafx {
|
application {
|
||||||
version = "21"
|
mainClass = "ru.di9.ss14.extractor.Launcher"
|
||||||
modules = [ "javafx.controls", "javafx.fxml" ]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
mainClassName = "ru.di9.ss14.extractor.Launcher"
|
mainClassName = application.mainClass
|
||||||
archiveBaseName.set(project.name)
|
archiveBaseName.set(project.name)
|
||||||
archiveVersion.set(project.version.toString())
|
archiveVersion.set(project.version.toString())
|
||||||
archiveClassifier.set("")
|
archiveClassifier.set("")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
launch4j {
|
||||||
|
headerType = "gui"
|
||||||
|
outfile = "${project.name}-${project.version.toString()}.exe"
|
||||||
|
mainClassName = application.mainClass
|
||||||
|
copyConfigurable = []
|
||||||
|
jarTask = project.tasks.shadowJar
|
||||||
|
bundledJrePath = "jre"
|
||||||
|
downloadUrl = "https://adoptium.net/temurin/releases/?os=windows&arch=x64&package=jre"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user