diff options
author | Bryson Steck <brysonsteck@protonmail.com> | 2023-05-15 20:05:43 -0600 |
---|---|---|
committer | Bryson Steck <brysonsteck@protonmail.com> | 2023-05-15 20:05:43 -0600 |
commit | bc65a6a44c5f54f65b559731b2a69894b6badf13 (patch) | |
tree | e8295ffa823e03e3286816c601595cbca7b8aee1 /app | |
parent | b7ef7feebb2a384fb6a18baf573d0d8a28cb8421 (diff) | |
download | ServerCraft-bc65a6a44c5f54f65b559731b2a69894b6badf13.tar ServerCraft-bc65a6a44c5f54f65b559731b2a69894b6badf13.tar.gz ServerCraft-bc65a6a44c5f54f65b559731b2a69894b6badf13.tar.bz2 |
changed package name, added java packager to gradle
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 46 | ||||
-rw-r--r-- | app/src/main/kotlin/xyz/brysonsteck/ServerCraft/App.kt (renamed from app/src/main/kotlin/xyz/brysonsteck/servercraft/App.kt) | 0 | ||||
-rw-r--r-- | app/src/main/kotlin/xyz/brysonsteck/ServerCraft/Main.kt (renamed from app/src/main/kotlin/xyz/brysonsteck/servercraft/Main.kt) | 0 | ||||
-rw-r--r-- | app/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/InfoController.kt (renamed from app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/InfoController.kt) | 0 | ||||
-rw-r--r-- | app/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt (renamed from app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt) | 0 | ||||
-rw-r--r-- | app/src/main/kotlin/xyz/brysonsteck/ServerCraft/server/Download.kt (renamed from app/src/main/kotlin/xyz/brysonsteck/servercraft/server/Download.kt) | 0 | ||||
-rw-r--r-- | app/src/main/kotlin/xyz/brysonsteck/ServerCraft/server/Server.kt (renamed from app/src/main/kotlin/xyz/brysonsteck/servercraft/server/Server.kt) | 0 | ||||
-rw-r--r-- | app/src/main/resources/dmg.png | bin | 0 -> 8844 bytes | |||
-rw-r--r-- | app/src/main/resources/icon.icns | bin | 0 -> 1575945 bytes | |||
-rw-r--r-- | app/src/main/resources/icon.ico | bin | 0 -> 270322 bytes | |||
-rw-r--r-- | app/src/main/resources/icon.png | bin | 0 -> 213761 bytes | |||
-rw-r--r-- | app/src/main/resources/xyz/brysonsteck/ServerCraft/app.png (renamed from app/src/main/resources/xyz/brysonsteck/servercraft/app.png) | bin | 75026 -> 75026 bytes | |||
-rw-r--r-- | app/src/main/resources/xyz/brysonsteck/ServerCraft/css/info-tabs.css (renamed from app/src/main/resources/xyz/brysonsteck/servercraft/css/info-tabs.css) | 0 | ||||
-rw-r--r-- | app/src/main/resources/xyz/brysonsteck/ServerCraft/icons/info.png (renamed from app/src/main/resources/xyz/brysonsteck/servercraft/icons/info.png) | bin | 5289 -> 5289 bytes | |||
-rw-r--r-- | app/src/main/resources/xyz/brysonsteck/ServerCraft/icons/warning.png (renamed from app/src/main/resources/xyz/brysonsteck/servercraft/icons/warning.png) | bin | 5131 -> 5131 bytes | |||
-rw-r--r-- | app/src/main/resources/xyz/brysonsteck/ServerCraft/info.fxml (renamed from app/src/main/resources/xyz/brysonsteck/servercraft/info.fxml) | 0 | ||||
-rw-r--r-- | app/src/main/resources/xyz/brysonsteck/ServerCraft/primary.fxml (renamed from app/src/main/resources/xyz/brysonsteck/servercraft/primary.fxml) | 0 |
17 files changed, 41 insertions, 5 deletions
diff --git a/app/build.gradle b/app/build.gradle index 9d46a4d..dec3174 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,6 +6,15 @@ * User Manual available at https://docs.gradle.org/8.0.2/userguide/building_java_projects.html */ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'io.github.fvarrui:javapackager:1.7.2' + } +} + plugins { // Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin. id 'org.jetbrains.kotlin.jvm' version '1.8.0' @@ -17,6 +26,8 @@ plugins { id 'distribution' } +apply plugin: 'io.github.fvarrui.javapackager.plugin' + repositories { // Use Maven Central for resolving dependencies. mavenCentral() @@ -43,28 +54,53 @@ dependencies { application { // Define the main class for the application. mainClass = 'xyz.brysonsteck.servercraft.MainKt' + applicationName = "ServerCraft" } distTar { compression = Compression.GZIP - archiveFileName = 'ServerCraft.tar.gz' -} - -distZip { - archiveFileName = 'ServerCraft.zip' } jar { archiveFileName = 'ServerCraft.jar' + manifest { attributes 'Main-Class': application.mainClass } + duplicatesStrategy = DuplicatesStrategy.INCLUDE from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } } +task pack(type: io.github.fvarrui.javapackager.gradle.PackageTask, dependsOn: build) { + mainClass = 'xyz.brysonsteck.servercraft.MainKt' + bundleJre = true + generateInstaller = true + administratorRequired = false + + linuxConfig { + pngFile = 'file:app/src/main/resources/icon.png' + } + + macConfig { + icnsFile = app/src/main/resources/icon.icns + volumeIcon = 'app/src/main/resources/icon.icns' + backgroundImage = 'app/src/main/resources/dmg.png' + developerId = 'Bryson Steck' + appId = 'xyz.brysonsteck.ServerCraft' + } + + winConfig { + icoFile = app/src/main/resources/icon.ico + setupMode = 'askTheUser' + disableDirPage = false + disableFinishedPage = false + disableWelcomePage = false + } +} + tasks.named('test') { // Use JUnit Platform for unit tests. useJUnitPlatform() diff --git a/app/src/main/kotlin/xyz/brysonsteck/servercraft/App.kt b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/App.kt index 7aa5639..7aa5639 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/servercraft/App.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/App.kt diff --git a/app/src/main/kotlin/xyz/brysonsteck/servercraft/Main.kt b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/Main.kt index e914e99..e914e99 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/servercraft/Main.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/Main.kt diff --git a/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/InfoController.kt b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/InfoController.kt index a4bdb18..a4bdb18 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/InfoController.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/InfoController.kt diff --git a/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt index cad547d..cad547d 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/servercraft/controllers/PrimaryController.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/controllers/PrimaryController.kt diff --git a/app/src/main/kotlin/xyz/brysonsteck/servercraft/server/Download.kt b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/server/Download.kt index a10ff69..a10ff69 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/servercraft/server/Download.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/server/Download.kt diff --git a/app/src/main/kotlin/xyz/brysonsteck/servercraft/server/Server.kt b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/server/Server.kt index 38e79a1..38e79a1 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/servercraft/server/Server.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/ServerCraft/server/Server.kt diff --git a/app/src/main/resources/dmg.png b/app/src/main/resources/dmg.png Binary files differnew file mode 100644 index 0000000..5c33572 --- /dev/null +++ b/app/src/main/resources/dmg.png diff --git a/app/src/main/resources/icon.icns b/app/src/main/resources/icon.icns Binary files differnew file mode 100644 index 0000000..fe1d98a --- /dev/null +++ b/app/src/main/resources/icon.icns diff --git a/app/src/main/resources/icon.ico b/app/src/main/resources/icon.ico Binary files differnew file mode 100644 index 0000000..4968f64 --- /dev/null +++ b/app/src/main/resources/icon.ico diff --git a/app/src/main/resources/icon.png b/app/src/main/resources/icon.png Binary files differnew file mode 100644 index 0000000..a24c362 --- /dev/null +++ b/app/src/main/resources/icon.png diff --git a/app/src/main/resources/xyz/brysonsteck/servercraft/app.png b/app/src/main/resources/xyz/brysonsteck/ServerCraft/app.png Binary files differindex ceb633a..ceb633a 100644 --- a/app/src/main/resources/xyz/brysonsteck/servercraft/app.png +++ b/app/src/main/resources/xyz/brysonsteck/ServerCraft/app.png diff --git a/app/src/main/resources/xyz/brysonsteck/servercraft/css/info-tabs.css b/app/src/main/resources/xyz/brysonsteck/ServerCraft/css/info-tabs.css index 023b0c1..023b0c1 100644 --- a/app/src/main/resources/xyz/brysonsteck/servercraft/css/info-tabs.css +++ b/app/src/main/resources/xyz/brysonsteck/ServerCraft/css/info-tabs.css diff --git a/app/src/main/resources/xyz/brysonsteck/servercraft/icons/info.png b/app/src/main/resources/xyz/brysonsteck/ServerCraft/icons/info.png Binary files differindex c1951a7..c1951a7 100644 --- a/app/src/main/resources/xyz/brysonsteck/servercraft/icons/info.png +++ b/app/src/main/resources/xyz/brysonsteck/ServerCraft/icons/info.png diff --git a/app/src/main/resources/xyz/brysonsteck/servercraft/icons/warning.png b/app/src/main/resources/xyz/brysonsteck/ServerCraft/icons/warning.png Binary files differindex 4d66729..4d66729 100644 --- a/app/src/main/resources/xyz/brysonsteck/servercraft/icons/warning.png +++ b/app/src/main/resources/xyz/brysonsteck/ServerCraft/icons/warning.png diff --git a/app/src/main/resources/xyz/brysonsteck/servercraft/info.fxml b/app/src/main/resources/xyz/brysonsteck/ServerCraft/info.fxml index 9228a2b..9228a2b 100644 --- a/app/src/main/resources/xyz/brysonsteck/servercraft/info.fxml +++ b/app/src/main/resources/xyz/brysonsteck/ServerCraft/info.fxml diff --git a/app/src/main/resources/xyz/brysonsteck/servercraft/primary.fxml b/app/src/main/resources/xyz/brysonsteck/ServerCraft/primary.fxml index dfdadd7..dfdadd7 100644 --- a/app/src/main/resources/xyz/brysonsteck/servercraft/primary.fxml +++ b/app/src/main/resources/xyz/brysonsteck/ServerCraft/primary.fxml |