2007-07-11 09:51:41 +00:00
|
|
|
#!/bin/sh
|
2005-04-27 12:59:53 +00:00
|
|
|
|
|
|
|
##
|
2007-09-05 13:00:32 +00:00
|
|
|
# post-Install Script for Macintosh BOINC Manager for OS X revised 9/5/07
|
2005-04-27 12:59:53 +00:00
|
|
|
##
|
|
|
|
|
2007-02-20 01:39:26 +00:00
|
|
|
echo "initial directory = $PWD"
|
|
|
|
echo "argument 1 = $1"
|
|
|
|
|
2005-04-27 12:59:53 +00:00
|
|
|
cd "$1"
|
2007-02-20 01:39:26 +00:00
|
|
|
|
|
|
|
echo "new directory = $PWD"
|
|
|
|
|
2007-09-05 13:00:32 +00:00
|
|
|
# Remove boinc.tiff from screensaver if present because it conflicts with new boinc.jpg
|
|
|
|
rm -f "/Library/Screen Savers/BOINCSaver.saver/Contents/Resources/boinc.tiff"
|
|
|
|
|
2005-05-21 12:07:21 +00:00
|
|
|
# Run the Postinstall Application
|
2006-06-21 13:09:19 +00:00
|
|
|
Contents/Resources/PostInstall.app/Contents/MacOS/PostInstall -part1
|
|
|
|
|
2007-09-05 13:00:32 +00:00
|
|
|
# Touch the newly installed bundles so OS recognizes new version numbers
|
|
|
|
touch "/Applications/BOINCManager.app"
|
|
|
|
touch "/Library/Screen Savers/BOINCSaver.saver"
|
|
|
|
|
|
|
|
# Start BOINC
|
2006-06-21 13:09:19 +00:00
|
|
|
Contents/Resources/PostInstall.app/Contents/MacOS/PostInstall -part2 &
|
2005-05-22 12:44:44 +00:00
|
|
|
|
|
|
|
exit 0
|