Chameleon Applications

Chameleon Applications Commit Details

Date:2010-11-29 21:42:09 (9 years 10 months ago)
Author:blackosx
Commit:247
Parents: 246
Message:Bug fix for volume names that contain spaces - package updated to v2.1.1b
Changes:
D/branches/blackosx/trunk/PackageBuilder/Build/Chameleon Installer v2.1.pkg
D/branches/blackosx/trunk/PackageBuilder/Chameleon_Installer_v2.1.pmdoc
A/branches/blackosx/trunk/PackageBuilder/Build/Chameleon Installer v2.1.1b.pkg
M/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Resources/English.lproj/Welcome.rtfd/TXT.rtf
M/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/WriteChameleonStage2.sh
M/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/BuildBootOptions.sh
M/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/SetActivePartition.sh
M/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/postflight.sh

File differences

branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/WriteChameleonStage2.sh
2626
2727
2828
29
29
3030
3131
3232
......
5454
5555
5656
57
57
5858
5959
6060
# if chosen, the package installer will add a file named 'nullESP'
# in to the temporary directory /.Chameleon
if [ -f ${selectedDestination}/.Chameleon/nullESP ]; then
if [ -f "${selectedDestination}"/.Chameleon/nullESP ]; then
echo "DEBUG: nullESP exists"
fi
echo "Executing command: cp ${selectedDestination}/.Chameleon/i386/${stage2Loader} ${targetVolume}"
cp "${selectedDestination}/.Chameleon/i386/${stage2Loader}" "${targetVolume}"
cp "${selectedDestination}"/.Chameleon/i386/"${stage2Loader}" "${targetVolume}"
#echo "Executing command: ${targetResources}/Tools/SetFile -a V ${targetVolume}/${stage2Loader}"
#"${targetResources}/Tools/SetFile" -a V "${targetVolume}/${stage2Loader}"
branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/SetActivePartition.sh
2727
2828
2929
30
30
3131
3232
3333
......
3737
3838
3939
40
40
4141
4242
4343
if [ ${diskSigCheck} == "0" ]; then
echo "DEBUG: Windows is not installed so let's change the active partition"
partitionactive=$( ${targetVolume}/.Chameleon/i386/fdisk440 -d ${targetDiskRaw} | grep -n "*" | awk -F: '{print $1}')
partitionactive=$( "${targetVolume}"/.Chameleon/i386/fdisk440 -d ${targetDiskRaw} | grep -n "*" | awk -F: '{print $1}')
echo "Current Active Partition: ${partitionactive}"
if [ "${partitionactive}" = "${targetSlice}" ]; then
# BadAxe requires EFI partition to be flagged active.
# but it doesn't' hurt to do it for any non-windows partition.
${targetVolume}/.Chameleon/i386/fdisk440 -e ${targetDiskRaw} <<-MAKEACTIVE
"${targetVolume}"/.Chameleon/i386/fdisk440 -e ${targetDiskRaw} <<-MAKEACTIVE
print
flag ${targetSlice}
write
branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/postflight.sh
2323
2424
2525
26
26
2727
2828
2929
......
6060
6161
6262
63
63
6464
6565
6666
# or merge temporary Extra folder in to an already existing Extra
# folder on the destination target.
if [ -d ${3}/.Chameleon/Extra ]; then
if [ -d "${3}"/.Chameleon/Extra ]; then
# Check to see if install to EFI system partition was selected
# if chosen, the package installer would have added a file named
# remove the temporary /.Chameleon directory
echo "Executing command: rm -r ${3}/.Chameleon/"
rm -r ${3}/.Chameleon/
rm -r "${3}"/.Chameleon/
# remove the temporary boot sector files if they exist
if [ -d /tmp/newbs ]; then
branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/BuildBootOptions.sh
22
33
44
5
5
66
77
88
......
207207
208208
209209
210
211
210
211
212212
213213
214214
main ()
{
tempDir="${destainationDrive}/.Chameleon/"
tempDir="${destinationDrive}/.Chameleon/"
echo "DEBUG: tempDir is ${tempDir}"
# get the passed destination drive?
if [ "$#" -eq 1 ]; then
destainationDrive="$1"
echo "DEBUG: passed argument for destainationDrive = $destainationDrive"
destinationDrive="$1"
echo "DEBUG: passed argument for destinationDrive = $destinationDrive"
fi
# Build Boot Options
branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Resources/English.lproj/Welcome.rtfd/TXT.rtf
55
66
77
8
8
99
1010
1111
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
\f0\b\fs36 \cf2 Unofficial Chameleon Test installer
\fs22 \cf0 v2.1b\
\fs22 \cf0 v2.1.1b\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
\b0 \cf3 by blackosx - 28th November 2010

Archive Download the corresponding diff file

Revision: 247