From e8a5f695cc7bd19d3b614cd72ee78ba708670b91 Mon Sep 17 00:00:00 2001 From: Charadon Date: Tue, 27 Sep 2022 16:01:39 -0400 Subject: src/launch.sh: Switched from xz to gzip --- src/launch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/launch.sh') diff --git a/src/launch.sh b/src/launch.sh index 1bec502..2523767 100644 --- a/src/launch.sh +++ b/src/launch.sh @@ -12,14 +12,14 @@ failed() { run_game() { PAYLOAD_LINE="$(awk '/^__PAYLOAD_BEGINS__/ { print NR + 1; exit 0; }' "$0")" || return 1 - tail -n +"${PAYLOAD_LINE}" "$0" | xz -d > "$TMPFILE" || return 1 + tail -n +"${PAYLOAD_LINE}" "$0" | gzip -d > "$TMPFILE" || return 1 chmod +x "$TMPFILE" || return 1 DYLD_LIBRARY_PATH=libs/ LD_LIBRARY_PATH=libs/ "$TMPFILE" > output.log 2>&1 || return 1 return 0 } cd "$(dirname "$0")" || exit 1 -trap '{ rm -rf "$TMPFILE"; }' EXIT HUP INT QUIT TERM PWR +trap '{ rm -rf "$TMPFILE"; }' EXIT HUP INT QUIT TERM if ! TMPFILE="./$(mktemp .Pong-XXXXXX)"; then -- cgit 1.4.1-2-gfad0