diff options
| author | Fuwn <[email protected]> | 2024-06-07 21:32:00 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-07 21:33:57 -0700 |
| commit | ba1df38d22387de325db062edd2cfa72cabe29cd (patch) | |
| tree | 20661624fd7d2fe0ed035b1f40e50dac7be07320 /bin | |
| download | worldsplayer_source_editor-ba1df38d22387de325db062edd2cfa72cabe29cd.tar.xz worldsplayer_source_editor-ba1df38d22387de325db062edd2cfa72cabe29cd.zip | |
feat: initial release
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/compile | 19 | ||||
| -rwxr-xr-x | bin/decompile | 10 |
2 files changed, 29 insertions, 0 deletions
diff --git a/bin/compile b/bin/compile new file mode 100755 index 0000000..e5ad288 --- /dev/null +++ b/bin/compile @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +main() { + # Replace this with your local location for the Java SE 6 JDK + local JAVA_HOME=~/Downloads/jdk1.6.0_45 + + mkdir -p out + + find source -name "*.java" >sources.txt + + ${JAVA_HOME}/bin/javac -source 1.6 -target 1.6 -Xlint:none -d out @sources.txt + + jar cf out/worlds.jar -C out . + jar cfm out/worlds.jar MANIFEST.MF -C out . + + rm sources.txt +} + +main diff --git a/bin/decompile b/bin/decompile new file mode 100755 index 0000000..b879ccd --- /dev/null +++ b/bin/decompile @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() { + # Replace this with your local path to worlds.jar + local WORLDS_JAR_PATH="${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib" + + vineflower -ega=true "${WORLDS_JAR_PATH}/worlds.jar" source +} + +main |