From e5c05dea6ffa7211672e65884633aebf578a5e78 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 7 Jun 2024 22:40:11 -0700 Subject: feat(decompile): commit initial source to local repository --- bin/decompile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/bin/decompile b/bin/decompile index de43598..b038c64 100755 --- a/bin/decompile +++ b/bin/decompile @@ -1,12 +1,22 @@ #!/usr/bin/env bash main() { - # Replace this with your local path to worlds.jar - local WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR:-"${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib/worlds.jar"} + # Replace this with your local path to worlds.jar + local WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR:-"${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib/worlds.jar"} - echo "Using WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR}" + echo "Using WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR}" - vineflower -ega=true "${WORLDSPLAYER_JAR}" source + vineflower -ega=true "${WORLDSPLAYER_JAR}" source + + if command -v git &>/dev/null; then + cd source || exit + + git init + git add . + git commit -m "$(date || true)" --no-gpg-sign + + cd .. + fi } main -- cgit v1.2.3