diff --git a/createRelease.sh b/createRelease.sh index e8bb527..7d29fb0 100644 --- a/createRelease.sh +++ b/createRelease.sh @@ -20,5 +20,6 @@ export JAVA_HOME="$HOME/.jdks/openjdk-17.0.1/" if [[ ! -d bin ]]; then mkdir bin fi -mv ./build/libs/shadow-1.0.0.jar bin +mv ./build/libs/shadow-1.0.0.jar bin/shadow-deobfuscated-$ver +./obfuscatedRelease.sh echo "Made release" \ No newline at end of file diff --git a/obfuscatedRelease.sh b/obfuscatedRelease.sh new file mode 100644 index 0000000..02e8e62 --- /dev/null +++ b/obfuscatedRelease.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo "Making Obfuscated Build" +ver=`cat ./src/main/resources/version.txt` +./gradlew build +java -jar "./proguard/proguard.jar" "$@" +mv ./build/libs/shadow-1.0.0.jar bin/shadow-$ver \ No newline at end of file diff --git a/proguard/proguard.jar b/proguard/proguard.jar new file mode 100644 index 0000000..83dd4fd Binary files /dev/null and b/proguard/proguard.jar differ