Skip to content

fourlastor-alexandria/roast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roast

A JVM starter in Rust

roast is a small executable that launches a JVM, similar to what using jpackage would output. It uses a config file to determine some options, following packr json format:

{
  "classPath": [
    "my-game.jar"
  ],
  "mainClass": "io.github.fourlastor.gdx.lwjgl3.Lwjgl3Launcher",
  "useZgcIfSupportedOs": true,
  "vmArgs": [
    "-Xmx1G"
  ]
}

In addition to launching the JVM, it hints Windows systems with hybrid GPU setups (NVIDIA Optimus, AMD PowerXpress) to use the discrete GPU.

API

roast will look for the following in its containing folder:

  1. Config file config.json and the referenced jars.
  2. A JDK/JRE (or a minimized image from jlink) in a folder called jdk