| 12345678910111213141516 |
- #!/usr/bin/env bash
- # Sculpt Engine / Project Cold Water AppImage launcher.
- # The AppImage mount is read-only, so mods/, audio_patches.json, etc. live in a per-user data dir.
- HERE="$(dirname "$(readlink -f "${0}")")"
- DATA_DIR="${SCULPT_ENGINE_HOME:-${XDG_DATA_HOME:-$HOME/.local/share}/sculpt-engine}"
- mkdir -p "$DATA_DIR"
- # Seed starter mods on first run without overwriting the user's own files.
- if [ -d "$HERE/usr/share/sculpt-engine/mods" ]; then
- mkdir -p "$DATA_DIR/mods"
- cp -rn "$HERE/usr/share/sculpt-engine/mods/." "$DATA_DIR/mods/" 2>/dev/null || true
- fi
- export LD_LIBRARY_PATH="$HERE/usr/lib:${LD_LIBRARY_PATH:-}"
- cd "$DATA_DIR" || exit 1
- exec "$HERE/usr/bin/project_cold_water" "$@"
|