Minor changes to SubCreator's Scripts

These are optional changes to SubCreator's Scripts that are intended to improve compatability. To get these changes, remove your Templates folder for it to be regenerated upon startup.
This commit is contained in:
ME1312 2018-06-25 17:02:31 -04:00
parent 465fb34bf1
commit fab347f4b1
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
20 changed files with 26 additions and 26 deletions

View File

@ -23,15 +23,15 @@ if [ ! -f "$2" ]
echo ERROR: Cannot find $2 echo ERROR: Cannot find $2
exit 2 exit 2
fi fi
if [ -d "Buildtools" ]; then if [ -d "SubServers.Patcher" ]; then
rm -Rf Buildtools rm -Rf SubServers.Patcher
fi fi
echo ">> Extracting $1..." echo ">> Extracting $1..."
mkdir BuildTools mkdir SubServers.Patcher
mkdir BuildTools/Modded.jar mkdir SubServers.Patcher/Patched.jar
cd BuildTools/Modded.jar cd SubServers.Patcher/Patched.jar
jar xvf "../../$1"; retvala=$?; jar xvf "../../$1"; __RETURN=$?;
if [ $retvala -eq 0 ] if [ $__RETURN -eq 0 ]
then then
if [ -f "LICENSE.txt" ]; then if [ -f "LICENSE.txt" ]; then
rm -Rf LICENSE.txt rm -Rf LICENSE.txt
@ -48,10 +48,10 @@ if [ $retvala -eq 0 ]
mv -f MODIFICATIONS ../MODIFICATIONS mv -f MODIFICATIONS ../MODIFICATIONS
fi fi
echo ">> Extracting $2..." echo ">> Extracting $2..."
mkdir ../Vanilla.jar mkdir ../Original.jar
cd ../Vanilla.jar cd ../Original.jar
jar xvf "../../$2"; retvalb=$?; jar xvf "../../$2"; __RETURN=$?;
if [ $retvalb -eq 0 ] if [ $__RETURN -eq 0 ]
then then
echo ">> Writing Changes..." echo ">> Writing Changes..."
if [ -f "META-INF/MANIFEST.MF" ] if [ -f "META-INF/MANIFEST.MF" ]
@ -65,30 +65,30 @@ if [ $retvala -eq 0 ]
if [ -f "MODIFICATIONS" ]; then if [ -f "MODIFICATIONS" ]; then
cat MODIFICATIONS >> ../MODIFICATIONS cat MODIFICATIONS >> ../MODIFICATIONS
fi fi
yes | cp -rf . ../Modded.jar yes | cp -rf . ../Patched.jar
cd ../ cd ../
printf "Built-By: SubServers.Bungee.Patcher\n" >> MANIFEST.MF printf "Built-By: SubServers.Bungee.Patcher\n" >> MANIFEST.MF
cp -f MANIFEST.MF Modded.jar/META-INF cp -f MANIFEST.MF Patched.jar/META-INF
if [ -f "Modded.jar/bungee.yml" ]; then if [ -f "Patched.jar/bungee.yml" ]; then
rm -Rf Modded.jar/bungee.yml rm -Rf Patched.jar/bungee.yml
fi fi
if [ ! -f "MODIFICATIONS" ]; then if [ ! -f "MODIFICATIONS" ]; then
printf "# SubServers.Bungee.Patcher generated difference list (may be empty if git is not installed)\n#\n" > MODIFICATIONS printf "# SubServers.Bungee.Patcher generated difference list (may be empty if git is not installed)\n#\n" > MODIFICATIONS
fi fi
printf "@ `date`\n> git --no-pager diff --no-index --name-status BuildTools/Vanilla.jar BuildTools/Modded.jar\n" >> MODIFICATIONS printf "@ `date`\n> git --no-pager diff --no-index --name-status SubServers.Patcher/Original.jar SubServers.Patcher/Patched.jar\n" >> MODIFICATIONS
git --no-pager diff --no-index --name-status Vanilla.jar Modded.jar | sed -e "s/\tVanilla.jar\//\t\//" -e "s/\tModded.jar\//\t\//" >> MODIFICATIONS git --no-pager diff --no-index --name-status Original.jar Patched.jar | sed -e "s/\tOriginal.jar\//\t\//" -e "s/\tPatched.jar\//\t\//" >> MODIFICATIONS
cp -f MODIFICATIONS Modded.jar cp -f MODIFICATIONS Patched.jar
cd Modded.jar cd Patched.jar
echo ">> Recompiling..." echo ">> Recompiling..."
if [ -f "../../SubServers.Patched.jar" ]; then if [ -f "../../SubServers.Patched.jar" ]; then
rm -Rf ../../SubServers.Patched.jar rm -Rf ../../SubServers.Patched.jar
fi fi
jar cvfm ../../SubServers.Patched.jar META-INF/MANIFEST.MF .; retvalc=$?; jar cvfm ../../SubServers.Patched.jar META-INF/MANIFEST.MF .; __RETURN=$?;
if [ $retvalc -eq 0 ] if [ $__RETURN -eq 0 ]
then then
echo ">> Cleaning Up..." echo ">> Cleaning Up..."
cd ../../ cd ../../
rm -Rf BuildTools rm -Rf SubServers.Patcher
exit 0; exit 0;
else else
echo ">> Error Recomiling Files" echo ">> Error Recomiling Files"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2,4 +2,4 @@ Manifest-Version: 1.0
Class-Path: BungeeCord.jar Waterfall.jar Class-Path: BungeeCord.jar Waterfall.jar
Main-Class: net.ME1312.SubServers.Bungee.Launch Main-Class: net.ME1312.SubServers.Bungee.Launch
Implementation-Title: SubServers.Bungee Implementation-Title: SubServers.Bungee
Specification-Title: 18w25b Specification-Title: 18w26d

Binary file not shown.

View File

@ -1,3 +1,3 @@
Manifest-Version: 1.0 Manifest-Version: 1.0
Implementation-Title: SubServers.Client.Bukkit Implementation-Title: SubServers.Client.Bukkit
Specification-Title: 18w25b Specification-Title: 18w26d

Binary file not shown.

View File

@ -1,4 +1,4 @@
Manifest-Version: 1.0 Manifest-Version: 1.0
Main-Class: net.ME1312.SubServers.Host.ExHost Main-Class: net.ME1312.SubServers.Host.ExHost
Implementation-Title: SubServers.Host Implementation-Title: SubServers.Host
Specification-Title: 18w25b Specification-Title: 18w26d

Binary file not shown.

View File

@ -2,4 +2,4 @@ Manifest-Version: 1.0
Class-Path: BungeeCord.jar Waterfall.jar Class-Path: BungeeCord.jar Waterfall.jar
Main-Class: net.ME1312.SubServers.Sync.Launch Main-Class: net.ME1312.SubServers.Sync.Launch
Implementation-Title: SubServers.Sync Implementation-Title: SubServers.Sync
Specification-Title: 18w25b Specification-Title: 18w26d