|
#!/bin/sh
|
|
# File: /mnt/public/Support/Games/Artemis
|
|
# Startdate: 2024-08-15-5 19:11
|
|
# Purpose: make artemis server have minimal graphics for vnc optimization
|
|
# Reference:
|
|
# https://noseynick.org/artemis/nebula/artemis-dl.sh
|
|
|
|
artemis_path="${artemis_path:-${1}}"
|
|
artemis_path="${artemis_path:-${HOME}/.wine/drive_c/Program Files (x86)/Artemis}"
|
|
test ! -d "${artemis_path}" && { echo "Please set artemis_path. Aborted." 1>&2 ; exit 1 ; }
|
|
|
|
indir=/mnt/public/Support/Games/Artemis
|
|
empty_png="$( find "${indir}" -iname 'empty.png' | head -n1 )"
|
|
empty_jpg="$( find "${indir}" -iname 'empty.jpg' | head -n1 )"
|
|
test -f "${empty_png}" && {
|
|
cp -vf "${empty_png}" "${artemis_path}/dat/aster2.png"
|
|
}
|
|
test -f "${empty_jpg}" && (
|
|
cd "${artemis_path}/art"
|
|
for word in sb*/*.jpg ; do
|
|
cp -vf "${empty_jpg}" "${word}"
|
|
done
|
|
)
|