Skip to content

Instantly share code, notes, and snippets.

@maxi0604
Last active March 16, 2024 12:31
Show Gist options
  • Save maxi0604/eee869aeadde4fc229f201219f61b05b to your computer and use it in GitHub Desktop.
Save maxi0604/eee869aeadde4fc229f201219f61b05b to your computer and use it in GitHub Desktop.
#!/bin/sh
TMPDIR="$(mktemp -d)"
wget https://github.com/peterhaneve/ONIMods/releases/download/FastTrackBeta/FastTrack.zip -O "$TMPDIR/FastTrack.zip" || exit 1
unzip "$TMPDIR/FastTrack.zip" -d "$TMPDIR" || exit 1
# For Steam on Linux via package manager
GAME_MOD_PATH="$HOME/.config/unity3d/Klei/Oxygen Not Included/mods/Local/FastTrack"
# For Steam on Linux via Flatpak
# GAME_MOD_PATH="$HOME/.var/app/com.valvesoftware.Steam/config/unity3d/Klei/Oxygen Not Included/mods/Local/FastTrack"
mkdir -p "$GAME_MOD_PATH" || exit 1
[ -d "$GAME_MOD_PATH" ] && rm -rv "$GAME_MOD_PATH"
mv -v "$TMPDIR/FastTrack" "$GAME_MOD_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment