02202e4d3d
- Added `image_clean.png` to the output directory for the clean image representation. - Added `image_clean_preview.png` for the preview of the clean image. - Introduced `image_svg_clean.png` for the SVG clean image representation.
25 lines
619 B
Bash
25 lines
619 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
APPDIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
VENV_DIR="$APPDIR/usr/opt/python"
|
|
GAME_DIR="$APPDIR/usr/share/mice"
|
|
|
|
if [ -n "${MICE_DATA_DIR:-}" ]; then
|
|
DATA_DIR="$MICE_DATA_DIR"
|
|
elif [ -n "${XDG_DATA_HOME:-}" ]; then
|
|
DATA_DIR="$XDG_DATA_HOME/mice"
|
|
else
|
|
DATA_DIR="$HOME/.local/share/mice"
|
|
fi
|
|
|
|
mkdir -p "$DATA_DIR"
|
|
|
|
export PATH="$VENV_DIR/bin:${PATH:-}"
|
|
export LD_LIBRARY_PATH="$APPDIR/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
|
export MICE_PROJECT_ROOT="$GAME_DIR"
|
|
export MICE_DATA_DIR="$DATA_DIR"
|
|
export PYTHONNOUSERSITE=1
|
|
|
|
cd "$GAME_DIR"
|
|
exec "$VENV_DIR/bin/python" rats.py "$@" |