Chameleon

Chameleon Commit Details

Date:2011-12-22 18:59:28 (8 years 11 months ago)
Author:JrCs
Commit:1739
Parents: 1738
Message:Enhanced package installer - Automaticaly select upgrade option if /Extra/org.chameleon.Boot.plist file exists on the target volume.
Changes:
M/trunk/package/buildpkg.sh
M/trunk/package/Distribution

File differences

trunk/package/Distribution
22
33
44
5
6
7
8
5
96
107
118
......
4845
4946
5047
51
52
48
49
50
51
52
53
<installer-gui-script minSpecVersion='1'>
<options
hostArchitectures='i386'
/>
<options hostArchitectures='i386' allow-external-scripts="no"/>
<domains enable_anywhere="true"/>
<welcome file='Welcome.rtfd'/>
toggle.selected = ( my.choice.selected != "false" ? "false" : "true" );
return ( toggle.selected != false ? false : true );
}
</script>
function chameleon_boot_plist_exists() {
return system.files.fileExistsAtPath(my.target.mountpoint + '/Extra/org.chameleon.Boot.plist');
}
</script>
trunk/package/buildpkg.sh
106106
107107
108108
109
109
110110
111111
112112
mkdir -p ${1}/Upgrade/Root
echo "" > "${1}/Upgrade/Root/install_type_upgrade"
echo "[BUILD] Upgrade "
buildpackage "${1}/Upgrade" "/$chamTemp" "" "start_selected=\"false\" selected=\"exclusive(choices['New'])\"" >/dev/null 2>&1
buildpackage "${1}/Upgrade" "/$chamTemp" "" "start_selected=\"chameleon_boot_plist_exists()\" selected=\"exclusive(choices['New'])\"" >/dev/null 2>&1
# End build upgrade package
((xmlindent--))

Archive Download the corresponding diff file

Revision: 1739