diff options
| author | Fuwn <[email protected]> | 2024-06-07 22:52:08 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-07 22:52:08 -0700 |
| commit | d440cbc2f4d3587a67f27188e5eadbc8816238a5 (patch) | |
| tree | 5652713ebdc440dd84e0c00ec6f0873f04069d25 /bin | |
| parent | feat(decompile): commit initial source to local repository (diff) | |
| download | worldsplayer_source_editor-d440cbc2f4d3587a67f27188e5eadbc8816238a5.tar.xz worldsplayer_source_editor-d440cbc2f4d3587a67f27188e5eadbc8816238a5.zip | |
fix(decompile): apply source patches for compilation
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/decompile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/decompile b/bin/decompile index b038c64..68a5546 100755 --- a/bin/decompile +++ b/bin/decompile @@ -6,14 +6,20 @@ main() { echo "Using WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR}" - vineflower -ega=true "${WORLDSPLAYER_JAR}" source + vineflower --explicit-generics=true "${WORLDSPLAYER_JAR}" source if command -v git &>/dev/null; then cd source || exit + # Initialise from decompiled source git init git add . - git commit -m "$(date || true)" --no-gpg-sign + git commit -m "Initial commit" --no-gpg-sign + + # Apply source patches + git apply ../*.patch + git add . + git commit -m "Source patches" --no-gpg-sign cd .. fi |