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