v0.7.5e: added desktop support for asian languages

This commit is contained in:
Evan Debenham
2019-10-23 20:34:06 -04:00
parent 7181b5b677
commit 9f8791978a
4 changed files with 95 additions and 34 deletions

View File

@@ -23,25 +23,30 @@ apply plugin: "java"
sourceSets.main.java.srcDirs = [ "src/" ]
project.ext.mainClassName = "com.shatteredpixel.shatteredpixeldungeon.desktop.DesktopLauncher"
project.ext.assetsDir = new File("../android/src/main/assets")
ext {
mainClassName = "com.shatteredpixel.shatteredpixeldungeon.desktop.DesktopLauncher"
//desktop-specific resources and shared resources
//TODO shared resources can probably be moved out of android module, right?
assetsDirs = ["../android/src/main/assets", "assets/"]
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
task debug(type: JavaExec) {
main = project.mainClassName
task runDebug(type: JavaExec) {
main = mainClassName
classpath = sourceSets.main.runtimeClasspath
workingDir = project.assetsDir
sourceSets.main.resources.srcDirs = assetsDirs
ignoreExitValue = true
}
task releaseJAR(type: Jar) {
from sourceSets.main.output
from project.assetsDir
sourceSets.main.resources.srcDirs = assetsDirs
from { configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } }
manifest {
attributes 'Main-Class': project.mainClassName
attributes 'Main-Class': mainClassName
attributes 'Specification-Name': appName
attributes 'Specification-Version': appVersionName
attributes 'Implementation-Version': appVersionCode