Skip to content

flathub/io.github.TheThirdOne.rars

Repository files navigation

RARS for Flatpak

RARS (RISC-V Assembler and Runtime Simulator) created by Benjamin Landers packaged for Flatpak

Documentation

Installation

  1. Install Flatpak (with the Flathub repository)
  2. Install RARS:
flatpak install flathub io.github.TheThirdOne.rars
  1. Run RARS either from your desktop environment or from the command line:
flatpak run io.github.TheThirdOne.rars

File System Access

By default, RARS will only have access to the Desktop and Documents folders. To grant access to other folders, run:

flatpak override io.github.TheThirdOne.rars --user --filesystem=[Type/path]

See the Flatpak documentation for more information.

Environment Variables

Name Default Description
RARS_JAVA None Passes arguments directly to the Java command (Will override other environment variables)
RARS_SCALE Screen width / 1920 Sets the sun.java2d.uiScale property (See documentation here)

Development

  1. Install Flatpak (See this guide)
  2. Install Flatpak builder (flatpak-builder; see this guide)
  3. Install dependencies:
flatpak install org.freedesktop.Sdk org.freedesktop.Sdk.Extension.openjdk17 org.freedesktop.appstream-glib 
  1. Build:
flatpak-builder build io.github.TheThirdOne.rars.yml --force-clean
  1. Install:
flatpak-builder --user --install --force-clean build io.github.TheThirdOne.rars.yml
  1. Test:
flatpak run io.github.TheThirdOne.rars
flatpak run io.github.TheThirdOne.rars h
RARS_SCALE=3.0 flatpak run io.github.TheThirdOne.rars
RARS_JAVA=bad-argument flatpak run io.github.TheThirdOne.rars
  1. Validate metadata:
flatpak run org.freedesktop.appstream-glib validate io.github.TheThirdOne.rars.metainfo.xml
desktop-file-validate io.github.TheThirdOne.rars.desktop

License