Massive update to launchers and installers. Working toward the new launcher system, things may still be broken but getting better.
This commit is contained in:
@ -496,7 +496,7 @@ game_launcher() {
|
||||
if [[ -d ".launch" ]]; then
|
||||
find -L "${0%/*}/.launch" -maxdepth 1 -type f -iname "*.sh" -exec bash -c '
|
||||
for f; do
|
||||
[[ $(head -n1 "$f") == "#"* ]] && continue
|
||||
[[ $(head -n1 "$f") =~ ^#$ ]] && continue
|
||||
name="${f##*/}"
|
||||
echo "${name%.sh}|$f"
|
||||
done
|
||||
@ -530,21 +530,6 @@ game_launcher() {
|
||||
# Remove any trailing | from selectedGame variable
|
||||
selectedGame="${selectedGame%|}"
|
||||
case "${selectedGame}" in
|
||||
*".tin")
|
||||
git -C "${selectedGame%/*}" pull | \
|
||||
dialog --progressbox "Checking for updates, please wait..." -1 -1
|
||||
if [[ -n "${COLORTERM}" ]]; then
|
||||
terminal_emulator tt++ ${selectedGame##*/}
|
||||
else
|
||||
pushd "${selectedGame%/*}"
|
||||
exec tt++ ${selectedGame##*/}
|
||||
fi
|
||||
;;
|
||||
*"main.py")
|
||||
pushd "${selectedGame%/*}"
|
||||
git pull -q | dialog --progressbox "Checking for updates, please wait..." -1 -1
|
||||
python3 ${selectedGame}
|
||||
;;
|
||||
*.sh)
|
||||
. "${selectedGame}"
|
||||
;;
|
||||
|
Reference in New Issue
Block a user