diff options
| author | Fuwn <[email protected]> | 2024-06-07 22:40:11 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-07 22:40:11 -0700 |
| commit | e5c05dea6ffa7211672e65884633aebf578a5e78 (patch) | |
| tree | 601c5a400d9f3788a89862e34e456da641cbb718 | |
| parent | fix(decompile): update javac paths for release (diff) | |
| download | worldsplayer_source_editor-e5c05dea6ffa7211672e65884633aebf578a5e78.tar.xz worldsplayer_source_editor-e5c05dea6ffa7211672e65884633aebf578a5e78.zip | |
feat(decompile): commit initial source to local repository
| -rwxr-xr-x | bin/decompile | 18 |
1 files 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 |