Changed: Upgrade scripts
This commit is contained in:
parent
997b4b9e00
commit
77af1636aa
2 changed files with 13 additions and 25 deletions
|
@ -12,33 +12,21 @@ MACOSPATH=$(dirname "$RYZOM_CLIENT")
|
||||||
SIGNPATH=$CONTENTSPATH/_CodeSignature
|
SIGNPATH=$CONTENTSPATH/_CodeSignature
|
||||||
|
|
||||||
# all files of original Bundle are in the same directory
|
# all files of original Bundle are in the same directory
|
||||||
# we have to copy them to the right location
|
# we have to uncompress them to the right location
|
||||||
|
|
||||||
# client_default.cfg and ryzom.icns are already in 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
|
# uncompress Ryzom
|
||||||
|
if [ -e "$ROOTPATH/Ryzom.zip" ]
|
||||||
|
then
|
||||||
|
unzip -o "$ROOTPATH/Ryzom.zip" -d "$CONTENTSPATH/.."
|
||||||
|
fi
|
||||||
|
|
||||||
# Info.plist contains updated version
|
# only uncompress Ryzom Installer if found in parent directory
|
||||||
cp -p "$ROOTPATH/Info.plist" "$CONTENTSPATH"
|
if [ -e "$ROOTPATH/RyzomInstaller.zip" ] && [ -d "$CONTENTSPATH/../../Ryzom Installer.app" ]
|
||||||
|
then
|
||||||
cp -p "$ROOTPATH/CodeResources" "$SIGNPATH"
|
rm -rf "$CONTENTSPATH/../../Ryzom Installer.app"
|
||||||
|
unzip -o "$ROOTPATH/RyzomInstaller.zip" -d "$CONTENTSPATH/../.."
|
||||||
# executable flag for all executables
|
fi
|
||||||
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"
|
|
||||||
|
|
||||||
# copy all binaries in MacOS directory
|
|
||||||
cp -p "$ROOTPATH/Ryzom" "$MACOSPATH"
|
|
||||||
cp -p "$ROOTPATH/CrashReport" "$MACOSPATH"
|
|
||||||
cp -p "$ROOTPATH/RyzomClientPatcher" "$MACOSPATH"
|
|
||||||
cp -p "$ROOTPATH/RyzomConfiguration" "$MACOSPATH"
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -16,7 +16,7 @@ chmod +x "$ROOTPATH/ryzom_installer_qt"
|
||||||
# copy Ryzom Installer if present in parent directory
|
# copy Ryzom Installer if present in parent directory
|
||||||
if [ -e "$ROOTPATH/../ryzom_installer_qt" ]
|
if [ -e "$ROOTPATH/../ryzom_installer_qt" ]
|
||||||
then
|
then
|
||||||
rm -f "$ROOTPATH/../ryzom_installer_qt"
|
rm -f "$ROOTPATH/../ryzom_installer_qt"
|
||||||
cp -a "$ROOTPATH/ryzom_installer_qt" "$ROOTPATH/.."
|
cp -a "$ROOTPATH/ryzom_installer_qt" "$ROOTPATH/.."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue