This commit is contained in:
Paul Chote
2010-07-07 22:14:12 +12:00
parent a5d90a542b
commit 4dd25d4936
3 changed files with 11 additions and 5 deletions

View File

@@ -44,7 +44,11 @@ cd $EXE_PATH
# Download and install game dependencies if needed
if [[ ! -e "mono" ]]; then
./download_package "$DEPS_PACKAGE" "$EXE_PATH" "17.2 Mb" "Game Dependencies" $DEPS_URL
./download_package "$DEPS_PACKAGE" "$EXE_PATH" "17.2 Mb" "required game dependencies" $DEPS_URL
if [[ ! -e "mono" ]]; then
./display_error "Installation failed" "Package install failed."
exit 1
fi
fi
# Prompt for the mod to run
@@ -68,16 +72,18 @@ fi
# Check that the game data is installed
if [[ $MOD == "ra" && ! -e "$GAME_PATH/mods/ra/packages/redalert.mix" ]]; then
./download_package "ra-packages.zip" "$GAME_PATH/mods/ra/packages/" "10 Mb" "Red Alert" $RA_URL
./download_package "ra-packages.zip" "$GAME_PATH/mods/ra/packages/" "10 Mb" "the Red Alert game data" $RA_URL
if [[ ! -e "$GAME_PATH/mods/ra/packages/redalert.mix" ]]; then
./display_error "Installation failed" "Package install failed."
exit 1
fi
fi
if [[ $MOD == "cnc" && ! -e "$GAME_PATH/mods/cnc/packages/conquer.mix" ]]; then
./download_package "cnc-packages.zip" "$GAME_PATH/mods/cnc/packages/" "5.9 Mb" "C&C" $CNC_URL
./download_package "cnc-packages.zip" "$GAME_PATH/mods/cnc/packages/" "5.9 Mb" "the C&C game data" $CNC_URL
if [[ ! -e "$GAME_PATH/mods/cnc/packages/conquer.mix" ]]; then
./display_error "Installation failed" "Package install failed."
exit 1
fi
fi

View File

@@ -27,7 +27,7 @@ RESOURCES_PATH=`pwd`/../Resources
`/usr/bin/osascript << EOT
tell application "Finder"
display dialog "${2}\n\nSupport is available in our irc channel irc.freenode.net #openra." \
buttons "Exit" \
buttons "Quit" \
default button 1 \
with title "${1}" \
with icon alias (POSIX file "$RESOURCES_PATH/OpenRA.icns")

View File

@@ -41,7 +41,7 @@ if [ -e "downloads/${1}" ]; then
else
CONTINUE=`/usr/bin/osascript << EOT
tell application "Finder"
display dialog "OpenRA needs to download the ${4} game data.\nDownload size: ${3}" \
display dialog "OpenRA needs to download ${4}.\n\nDownload size: ${3}" \
buttons {"Download", "Quit"} \
default button "Download" \
with icon alias (POSIX file "$RESOURCES_PATH/OpenRA.icns")