nothing much

This commit is contained in:
2025-06-03 20:10:46 +03:00
parent 5c053e78a7
commit 62af69055d
6 changed files with 30 additions and 20 deletions

View File

@@ -20,6 +20,7 @@ repositories {
tasks.register('compileClient', JavaExec) {
classpath(sourceSets.main.runtimeClasspath)
mainClass.set('com.shatteredpixel.shatteredpixeldungeon.html.Compile')
jvmArgs('-Xms8g', '-Xmx14g', '-Xss16m', '-XX:MaxMetaspaceSize=12g', '-Dfile.encoding=UTF-8')
outputs.dir '../release/webapp'
doFirst {
println "Running compileClient..."

View File

@@ -3,5 +3,5 @@
../gradlew :html:build
wait
if [[ -d ../release/webapp/ ]]; then
python3 -m http.server 8100 -d ../release/webapp/
python3 -m http.server 8000 -d ../release/webapp/
fi

9
html/deployWeb.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
TARGET_FOLDER="shatteredPixelDungeon"
# shellcheck disable=SC2029
if ssh vps "[[ -d /var/www/$TARGET_FOLDER ]]"; then
ssh vps "find /var/www/$TARGET_FOLDER -mindepth 1 -delete"
scp -r ../release/webapp/* vps:/var/www/$TARGET_FOLDER
fi

View File

@@ -1,4 +1,4 @@
/*
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@ -7,7 +7,7 @@
*
* This file is derived from micronaut-libgdx-teavm (https://github.com/hollingsworthd/micronaut-libgdx-teavm),
* originally licensed under the Apache License, Version 2.0.
*
*
* Modifications made by Konsthol on 13/4/25:
* - Adjusted to compile Shattered Pixel Dungeon
*