Chameleon

Chameleon Commit Details

Date:2011-12-13 23:16:44 (12 years 4 months ago)
Author:blackosx
Commit:1731
Parents: 1730
Message:Revised installer to always install Keylayout module and associated Keymaps. The user will see the option checked for installation but won't be able to uncheck it.
Changes:
M/branches/blackosx/package/Resources/en.lproj/Localizable.strings
M/branches/blackosx/package/buildpkg.sh
M/branches/blackosx/package/Scripts/Main/postinstall

File differences

branches/blackosx/package/Scripts/Main/postinstall
105105
106106
107107
108
109
110
111
108
109
110
111
112
113
114
112115
113116
114117
# need to delete the Keylayout module and Keymaps that were automatically
# installed to the temporary /Extra folder (controlled by the call to
# buildpackage for keylayouts in buildpkg.sh).
if [ $keyLayoutOption == 0 ]; then
rm -rf "$chamTemp"/Extra/Keymaps/
rm -f "$chamTemp"/Extra/modules/Keylayout.dylib
fi
# UPDATE - After discussion with JrCs, it was decided to leave
# these in by default so this has been commented out.
# if [ $keyLayoutOption == 0 ]; then
#rm -rf "$chamTemp"/Extra/Keymaps/
#rm -f "$chamTemp"/Extra/modules/Keylayout.dylib
# fi
# If exclusive options were used and the 'None' option was chosen,
# then a dummy file named DONT=ADD would be in /$chamTemp/Extra/options.
branches/blackosx/package/Resources/en.lproj/Localizable.strings
4444
4545
4646
47
47
4848
4949
5050
......
8181
8282
8383
84
84
8585
8686
8787
......
325325
326326
327327
328
328
329329
330330
331331
// Modules
// ----------------------------------------------------------------------------
"Module_title" = "Modules";
"Module_description" = "The modules system incorporated in chameleon allows for a user or developer to extend the core functionality of chameleon without replacing the main boot file. ";
"Module_description" = "The modules system incorporated in chameleon allows for a user or developer to extend the core functionality of chameleon without replacing the main boot file. The Keylayout module and associated keymaps are installed by default.";
"AMDGraphicsEnabler_title" = "AMDGraphicsEnabler";
"AMDGraphicsEnabler_description" = "The GraphicsEnabler ATI code ( > r784) ported to a module.
Dependencies: klibc";
"Keylayout_title" = "Keylayout";
"Keylayout_description" = "This module permits the user to define the keyboard key mappings.";
"Keylayout_description" = "This module permits the user to define the keyboard key mappings. This module and associated keymaps are installed by default.";
// ============================================================================
// KeyLayout
"KeyLayout_title" = "KeyLayout";
"KeyLayout_description" = "Set one keylayout to use, or select 'None' if you don't want to select a keylayout. This option will also install the Keylayout module and Keymaps.";
"KeyLayout_description" = "Set one keylayout to use, or select 'None' if you don't want to select a keylayout.";
// Themes
"Themes_title" = "Themes";
branches/blackosx/package/buildpkg.sh
216216
217217
218218
219
219
220220
221221
222222
# automatically to the temporary /Extra folder without giving the user an option.
# Then, in Scripts/Main/postinstall we will check to see if the user selected a
# keymap - if they did then we'll copy these files otherwise we'll ignore them.
buildpackage "${1}/Keylayout" "/$chamTemp" "" "start_visible=\"false\"" "start_selected=\"true\"" >/dev/null 2>&1
buildpackage "${1}/Keylayout" "/$chamTemp" "" "start_enabled=\"false\"" "start_selected=\"true\"" >/dev/null 2>&1
}
fi

Archive Download the corresponding diff file

Revision: 1731