added distribution task to client buildscript
parent
f7b1f94a4f
commit
6bbdfbc4a6
@ -1,6 +1,7 @@
|
|||||||
|
subprojects {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':wizard-common')
|
implementation project(':wizard-common')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
description = 'wizard-client'
|
description = 'wizard-client'
|
||||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 265 KiB After Width: | Height: | Size: 265 KiB |
@ -1,14 +1,17 @@
|
|||||||
//file:noinspection GroovyAssignabilityCheck
|
plugins {
|
||||||
//file:noinspection GroovyAccessibility
|
id 'application'
|
||||||
ext {
|
|
||||||
javaMainClass = "eu.jonahbauer.wizard.client.libgdx.desktop.DesktopLauncher"
|
|
||||||
assetsDir = new File("../core/src/main/resources")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task run(type: JavaExec, dependsOn: classes) {
|
application {
|
||||||
mainClass = javaMainClass
|
mainClass = "eu.jonahbauer.wizard.client.libgdx.desktop.DesktopLauncher"
|
||||||
classpath = sourceSets.main.runtimeClasspath
|
|
||||||
standardInput = System.in
|
run {
|
||||||
workingDir = project.assetsDir
|
|
||||||
ignoreExitValue true
|
ignoreExitValue true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
distributions {
|
||||||
|
main {
|
||||||
|
distributionBaseName = 'wizard-client'
|
||||||
|
}
|
||||||
|
}
|
@ -1,14 +1,14 @@
|
|||||||
package eu.jonahbauer.wizard.client.libgdx.desktop;
|
package eu.jonahbauer.wizard.client.libgdx.desktop;
|
||||||
|
|
||||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
|
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
|
||||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
|
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
|
||||||
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
|
import eu.jonahbauer.wizard.client.libgdx.WizardGame;
|
||||||
|
|
||||||
public class DesktopLauncher {
|
public class DesktopLauncher {
|
||||||
public static void main (String[] arg) {
|
public static void main (String[] arg) {
|
||||||
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
|
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
||||||
config.title = "Wizard Jubilaeumsedition 2021";
|
config.setTitle("Wizard Jubilaeumsedition 2021");
|
||||||
config.foregroundFPS = 60;
|
config.setForegroundFPS(60);
|
||||||
new LwjglApplication(new WizardGame(), config);
|
new Lwjgl3Application(new WizardGame(), config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue