Created
March 12, 2022 16:33
-
-
Save rfht/93d6ac68eee4ebf4b0b9acbd2ce39f1d to your computer and use it in GitHub Desktop.
Legacy run script for libgdx games on OpenBSD, like Slay the Spire
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# get mainClass from config.json | |
mainclass= | |
mainclass="$(cat config.json | grep mainClass | cut -d\" -f 4)" | |
# TODO: get vmArgs from config.json | |
vmargs="-Xmx2G" | |
JAVA_HOME=${TRUEPREFIX}/jdk-11 PATH=$PATH:$JAVA_HOME/bin java $vmargs $mainclass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment