summaryrefslogtreecommitdiff
blob: b81badb1f99f28271067bcdeca1d59ee38c783df (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh -eu

# Unfortunately, this game always writes within its own installation directory
# rather than HOME. We work around this with bubblewrap.

DIR="${HOME}"/.local/share/ASAMU
mkdir -p "${DIR}"/Saves
cp -r --preserve=timestamps /opt/ASAMU/ASAMU/Config/ "${DIR}"/
exec bwrap --bind / / --dev-bind /dev /dev --bind "${DIR}"/Config /opt/ASAMU/ASAMU/Config --bind "${DIR}"/Saves /opt/ASAMU/ASAMU/Saves /opt/ASAMU/Binaries/gentoo/ASAMU "${@}"