Rename Habbo jar pattern to Polaris and bump JVM heap to 4G
This commit is contained in:
1 parent
c68fccceeb
commit
9255788b06
1 file changed
+2
-2
+2
-2
@@ -373,7 +373,7 @@ update_emulator() {
|
||||
tail -10 "$LOG_FILE" | grep -E '(ERROR|FAILURE|BUILD)' || true
|
||||
die "Maven build failed (see: $LOG_FILE)"
|
||||
fi
|
||||
local jar=$(find target -maxdepth 1 -name 'Habbo-*-jar-with-dependencies.jar' -printf '%T@ %p\n' 2>/dev/null | sort -rn | sed -n '1s/^[0-9.]* //p' | xargs -r basename 2>/dev/null || echo "")
|
||||
local jar=$(find target -maxdepth 1 -name 'Polaris-*-jar-with-dependencies.jar' -printf '%T@ %p\n' 2>/dev/null | sort -rn | sed -n '1s/^[0-9.]* //p' | xargs -r basename 2>/dev/null || echo "")
|
||||
[ -z "$jar" ] && die "No jar found"
|
||||
ok "Jar: $jar"
|
||||
cd target/
|
||||
@@ -383,7 +383,7 @@ file_name_emulator=emulator.log
|
||||
current_time=\$(date "+%H%M_%d-%m-%Y")
|
||||
file_name=\$file_name_emulator.\$current_time
|
||||
mv /var/log/emu/emulator.log /var/log/emu/\$file_name
|
||||
java -Dfile.encoding=UTF8 -Xmx2G -jar $jar
|
||||
java -Dfile.encoding=UTF8 -Xmx4G -jar $jar
|
||||
EOJ
|
||||
chmod +x emulator; ok "Launch script updated"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
Reference in new issue
Block a user