2016-02-28 15:36:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "$ROOTPATH" ]
|
|
|
|
then
|
|
|
|
echo "upgd_nl.sh can only be launched from updt_nl.sh"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# determine directory where all files reside
|
2016-02-29 08:32:27 +00:00
|
|
|
CONTENTSPATH=$(dirname "$ROOTPATH")
|
|
|
|
MACOSPATH=$(dirname "$RYZOM_CLIENT")
|
2016-02-28 15:36:46 +00:00
|
|
|
SIGNPATH=$CONTENTSPATH/_CodeSignature
|
|
|
|
|
|
|
|
# all files of original Bundle are in the same directory
|
|
|
|
# we have to copy them to the right location
|
|
|
|
|
|
|
|
# client_default.cfg and ryzom.icns are already in the right location
|
|
|
|
|
|
|
|
# PkgInfo usually doesn't change so don't copy it
|
|
|
|
|
|
|
|
# Info.plist contains updated version
|
2016-02-29 08:32:27 +00:00
|
|
|
cp -p "$ROOTPATH/Info.plist" "$CONTENTSPATH"
|
2016-02-28 15:36:46 +00:00
|
|
|
|
2016-02-29 08:32:27 +00:00
|
|
|
cp -p "$ROOTPATH/CodeResources" "$SIGNPATH"
|
2016-02-28 15:36:46 +00:00
|
|
|
|
|
|
|
# executable flag for all executables
|
2016-02-29 08:32:27 +00:00
|
|
|
chmod +x "$ROOTPATH/Ryzom"
|
|
|
|
chmod +x "$ROOTPATH/CrashReport"
|
|
|
|
chmod +x "$ROOTPATH/RyzomClientPatcher"
|
|
|
|
chmod +x "$ROOTPATH/RyzomConfiguration"
|
|
|
|
|
|
|
|
# remove previous executables
|
|
|
|
rm -f "$MACOSPATH/Ryzom"
|
|
|
|
rm -f "$MACOSPATH/CrashReport"
|
|
|
|
rm -f "$MACOSPATH/RyzomClientPatcher"
|
|
|
|
rm -f "$MACOSPATH/RyzomConfiguration"
|
2016-02-28 15:36:46 +00:00
|
|
|
|
|
|
|
# copy all binaries in MacOS directory
|
2016-02-29 08:32:27 +00:00
|
|
|
cp -p "$ROOTPATH/Ryzom" "$MACOSPATH"
|
|
|
|
cp -p "$ROOTPATH/CrashReport" "$MACOSPATH"
|
|
|
|
cp -p "$ROOTPATH/RyzomClientPatcher" "$MACOSPATH"
|
|
|
|
cp -p "$ROOTPATH/RyzomConfiguration" "$MACOSPATH"
|
2016-02-28 15:36:46 +00:00
|
|
|
|
|
|
|
exit 0
|