From 97e50f198b51405bbfeafd41d285f1fc0c77c854 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 7 Jun 2024 22:52:08 +0000 Subject: fix(decompile): apply source patches for compilation --- bin/decompile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin/decompile') 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 -- cgit v1.2.3