openrsc-core/Deployment_Scripts/deploy-openrsc-client.sh
2025-06-25 19:41:35 +00:00

23 lines
715 B
Bash
Executable file

#!/bin/sh
cd /opt/openrsc
#ant -f server/build.xml compile_core
#ant -f server/build.xml compile_plugins
ant -f Client_Base/build.xml compile
ant -f PC_Launcher/build.xml compile
# PC Client
yes | cp -f Client_Base/*.jar /opt/website-downloads/
# Launcher
yes | cp -rf PC_Launcher/*.jar /opt/website-downloads/
# Set file permissions within the Website downloads folder
chmod +x /opt/website-downloads/*.jar
# Cache copy and file permissions
yes | cp -a -rf "Client_Base/Cache/." "/opt/website-downloads/"
cd '/opt/website-downloads/' || exit
# Performs md5 hashing of all files in cache and writes to a text file for the launcher to read
find -type f \( -not -name "MD5.SUM" \) -exec md5sum '{}' \; >MD5.SUM