Skip to content

Instantly share code, notes, and snippets.

@rfht
Created March 12, 2022 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfht/93d6ac68eee4ebf4b0b9acbd2ce39f1d to your computer and use it in GitHub Desktop.
Save rfht/93d6ac68eee4ebf4b0b9acbd2ce39f1d to your computer and use it in GitHub Desktop.
Legacy run script for libgdx games on OpenBSD, like Slay the Spire
#!/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