mirror of https://github.com/BOINC/boinc.git
Mac installer: make my changes for OS 10.11 El Capitan compatibility work with branded versions of BOINC (GridRepublic, etc.)
This commit is contained in:
parent
e66a572838
commit
3586e4044a
|
@ -16,20 +16,21 @@ fi
|
||||||
|
|
||||||
rm -f /tmp/BOINCInstallLog.txt
|
rm -f /tmp/BOINCInstallLog.txt
|
||||||
|
|
||||||
pipath=`echo $1 | sed -e "s/BOINC.pkg/PostInstall.app/"`
|
# PostInstall.app is in the same directory as the package (BOINC.pkg or GridRepublic.pkg, etc.)
|
||||||
## echo "pi path = $pipath" >> /tmp/BOINCInstallLog.txt
|
pipath=`dirname "$1"`/PostInstall.app/Contents/MacOS/PostInstall
|
||||||
|
echo "PostInstall.app path = $pipath"
|
||||||
|
|
||||||
# Run the Postinstall Application
|
# Run the Postinstall Application
|
||||||
if [ "${COMMAND_LINE_INSTALL}" = "1" ]; then
|
if [ "${COMMAND_LINE_INSTALL}" = "1" ]; then
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part1 >> /tmp/BOINCInstallLog.txt
|
"$pipath" -part1 >> /tmp/BOINCInstallLog.txt
|
||||||
sleep 2
|
sleep 2
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part2 >> /tmp/BOINCInstallLog.txt &
|
"$pipath" -part2 >> /tmp/BOINCInstallLog.txt &
|
||||||
else
|
else
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part1
|
"$pipath" -part1
|
||||||
sleep 2
|
sleep 2
|
||||||
# part2 continues to run after Installer finishes,
|
# part2 continues to run after Installer finishes,
|
||||||
# and fails unless we redirect stdout to a file
|
# and fails unless we redirect stdout to a file
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part2 >> /tmp/BOINCInstallLog.txt &
|
"$pipath" -part2 >> /tmp/BOINCInstallLog.txt &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -16,20 +16,21 @@ fi
|
||||||
|
|
||||||
rm -f /tmp/BOINCInstallLog.txt
|
rm -f /tmp/BOINCInstallLog.txt
|
||||||
|
|
||||||
pipath=`echo $1 | sed -e "s/BOINC.pkg/PostInstall.app/"`
|
# PostInstall.app is in the same directory as the package (BOINC.pkg or GridRepublic.pkg, etc.)
|
||||||
## echo "pi path = $pipath" >> /tmp/BOINCInstallLog.txt
|
pipath=`dirname "$1"`/PostInstall.app/Contents/MacOS/PostInstall
|
||||||
|
echo "PostInstall.app path = $pipath"
|
||||||
|
|
||||||
# Run the Postinstall Application
|
# Run the Postinstall Application
|
||||||
if [ "${COMMAND_LINE_INSTALL}" = "1" ]; then
|
if [ "${COMMAND_LINE_INSTALL}" = "1" ]; then
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part1 >> /tmp/BOINCInstallLog.txt
|
"$pipath" -part1 >> /tmp/BOINCInstallLog.txt
|
||||||
sleep 2
|
sleep 2
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part2 >> /tmp/BOINCInstallLog.txt &
|
"$pipath" -part2 >> /tmp/BOINCInstallLog.txt &
|
||||||
else
|
else
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part1
|
"$pipath" -part1
|
||||||
sleep 2
|
sleep 2
|
||||||
# part2 continues to run after Installer finishes,
|
# part2 continues to run after Installer finishes,
|
||||||
# and fails unless we redirect stdout to a file
|
# and fails unless we redirect stdout to a file
|
||||||
"$pipath/Contents/MacOS/PostInstall" -part2 >> /tmp/BOINCInstallLog.txt &
|
"$pipath" -part2 >> /tmp/BOINCInstallLog.txt &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue