Forced sudo for actions due to default permissions

This commit is contained in:
Marwolf
2018-08-11 00:16:34 -04:00
parent 5ee4051c90
commit 76948f3b7a

View File

@@ -3,20 +3,20 @@
# Client # Client
echo "Compiling the game client." echo "Compiling the game client."
echo "" echo ""
ant -f "Game/client/build.xml" compile sudo ant -f "Game/client/build.xml" compile
echo "" echo ""
echo "" echo ""
echo "Compressing jar into zip" echo "Compressing jar into zip"
echo "" echo ""
cd Game/client cd Game/client
zip -r "client.zip" "Open_RSC_Client.jar" sudo zip -r "client.zip" "Open_RSC_Client.jar"
cd ../../ cd ../../
echo "" echo ""
echo "" echo ""
echo "Copying result to Website/downloads/" echo "Copying result to Website/downloads/"
echo "" echo ""
yes | cp -rf "Game/client/client.zip" "Website/downloads/" yes | sudo cp -rf "Game/client/client.zip" "Website/downloads/"
rm "Game/client/client.zip" sudo rm "Game/client/client.zip"
echo "" echo ""
echo "" echo ""
@@ -24,20 +24,20 @@ echo ""
# Launcher # Launcher
echo "Compiling the game launcher." echo "Compiling the game launcher."
echo "" echo ""
ant -f "Game/Launcher/build.xml" sudo ant -f "Game/Launcher/build.xml"
echo "" echo ""
echo "" echo ""
echo "Copying result to Website/downloads/" echo "Copying result to Website/downloads/"
echo "" echo ""
yes | cp -rf "Game/Launcher/dist/Open_RSC_Launcher.jar" "Website/downloads/" yes | sudo cp -rf "Game/Launcher/dist/Open_RSC_Launcher.jar" "Website/downloads/"
echo "" echo ""
echo "" echo ""
# Cache # Cache
echo "Copying Game/client/cache.zip to Website/downloads/" echo "Copying Game/client/cache.zip to Website/downloads/"
yes | cp -rf "Game/client/cache.zip" "Website/downloads/" yes | sudo cp -rf "Game/client/cache.zip" "Website/downloads/"
# MD5sum client.zip and cache.zip > hashes.txt # MD5sum client.zip and cache.zip > hashes.txt
rm Website/downloads/hashes.txt sudo rm Website/downloads/hashes.txt
md5sum Website/downloads/client.zip | grep ^[a-zA-Z0-9]* | awk '{print "client="$1}' | tee -a Website/downloads/hashes.txt md5sum Website/downloads/client.zip | grep ^[a-zA-Z0-9]* | awk '{print "client="$1}' | sudo tee -a Website/downloads/hashes.txt
md5sum Website/downloads/cache.zip | grep ^[a-zA-Z0-9]* | awk '{print "cache="$1}' | tee -a Website/downloads/hashes.txt md5sum Website/downloads/cache.zip | grep ^[a-zA-Z0-9]* | awk '{print "cache="$1}' | sudo tee -a Website/downloads/hashes.txt