Chameleon

Chameleon Commit Details

Date:2012-01-06 20:30:55 (12 years 3 months ago)
Author:blackosx
Commit:1771
Parents: 1770
Message:Merge branch to match latest trunk and include small fix to only create Chameleon.Backups and write to the install log, if required.
Changes:
D/branches/blackosx/package/Resources/zh-CN.lproj
D/branches/blackosx/package/Resources/zh-TW.lproj
M/branches/blackosx/package/Resources/en.lproj/Localizable.strings
M/branches/blackosx/package/Resources/pt-PT.lproj/Localizable.strings
M/branches/blackosx/package/Resources/sr.lproj/Localizable.strings
M/branches/blackosx/package/Distribution
M/branches/blackosx/package/Resources/es.lproj/Localizable.strings
M/branches/blackosx/package/Resources/de.lproj/Localizable.strings
M/branches/blackosx/package/Resources/pl.lproj/Localizable.strings
M/branches/blackosx/package/Resources/id.lproj/Localizable.strings
M/branches/blackosx
M/branches/blackosx/package/Changes.txt
M/branches/blackosx/package/Scripts/Main/postinstall
M/branches/blackosx/package/Scripts/Main/preinstall

File differences

branches/blackosx/package/Distribution
4141
4242
4343
44
45
44
45
46
47
48
49
4650
4751
4852
function get_chameleon_boot_plist() {
if (my.target) {
var chameleon_boot_plist = my.target.mountpoint + '/Extra/org.chameleon.Boot.plist'
return system.files.plistAtPath(chameleon_boot_plist);
var boot_plist_filenames = new Array( 'org.chameleon.Boot.plist', 'com.apple.Boot.plist' );
for ( var i = 0; i < boot_plist_filenames.length; i++ ) {
var plist = system.files.plistAtPath( my.target.mountpoint + '/Extra/' + boot_plist_filenames[i] );
if (plist)
return plist;
}
}
return null;
}
branches/blackosx/package/Changes.txt
1
2
3
4
5
6
7
8
9
10
111
212
313
- JrCs - Look for a com.apple.Boot.plist file for users upgrading from legacy installations
- Only create Chameleon.Backups and write to the install log, if required.
- JrCs - Improved backup of chameleon files
- JrCs - Automaticaly select previous options
- JrCs - Improved buildpkg script - Simplify the construction of options menu - Add a lot of checks to avoid the construction of a bad XML file
- Change Localizable.strings to match the recent changes to the install process.
- Improve messages written to the installation log.
branches/blackosx/package/Scripts/Main/postinstall
7373
7474
7575
76
77
7876
7977
8078
mkdir "$chamTemp"/Extra
fi
tempOCBP="$chamTemp"/Extra/org.chameleon.Boot.plist
# Create template for org.chameleon.Boot.plist"
tempOCBP="$chamTemp"/Extra/org.chameleon.Boot.plist
cp "$4"/Library/Preferences/SystemConfiguration/com.apple.Boot.plist "$tempOCBP"
branches/blackosx/package/Scripts/Main/preinstall
77
88
99
10
11
10
11
12
1213
1314
15
16
1417
1518
19
1620
1721
1822
......
3842
3943
4044
41
45
4246
4347
44
45
4648
49
50
4751
4852
4953
......
6266
6367
6468
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
6985
70
71
72
73
74
75
76
7786
7887
7988
echo ""
# Creates text file named 'Chameleon_Installer_Log.txt'
# at the root of the target volume. This is to help show the
# user why the installation process failed (even though the
# at the root of the target volume. This is to give the user
# a record of the installation process and also to show why
# possibly the installation process failed (even though the
# package installer ends reading 'Installation Successful'.
# This script also prepares, then backs up any previous
# stage2 boot file, /Extra folder and install log if they exist.
# Find location of this script in the package installer
# so we know where all the other scripts are located.
# ---------------------------------------------
# Preparing Backing up Chameleon files
# Preparing Backing up of Chameleon files
# ---------------------------------------------
backupDir="${targetVolume}/Chameleon.Backups/"$( date -j "+%F-%Hh%M" )
mkdir -p "$backupDir"
if [[ -f "$logFile" ]];then
# Only make backupDir if required
mkdir -p "$backupDir"
# Backup old log file
mv "$logFile" "${backupDir}/${logName}"
fi
# ---------------------------------------------
# Backing up Chameleon files
# ---------------------------------------------
# Backup stage2
if [[ -f "${targetVolume}/boot" ]];then
echo "Backing up stage2 file ${targetVolume}/boot to ${backupDir}/boot" >>"${logFile}"
cp -p "${targetVolume}/boot" "${backupDir}/boot"
if [[ -f "${targetVolume}/boot" ]] || [[ -d "${targetVolume}/Extra" ]];then
if [[ ! -d "$backupDir" ]];then
mkdir -p "$backupDir"
fi
# Backup stage2
if [[ -f "${targetVolume}/boot" ]];then
echo "Backing up stage2 file ${targetVolume}/boot to ${backupDir}/boot" >>"${logFile}"
cp -p "${targetVolume}/boot" "${backupDir}/boot"
fi
# Backup /Extra directory
if [[ -d "${targetVolume}/Extra" ]];then
echo "Moving ${targetVolume}/Extra folder to ${backupDir}/Extra" >>"${logFile}"
cp -pR "${targetVolume}/Extra" "${backupDir}/Extra"
fi
chflags -R nohidden "$backupDir" # Remove the invisible flag of files in the backups
echo "======================================================" >>"${logFile}"
fi
# Backup /Extra directory
if [[ -d "${targetVolume}/Extra" ]];then
echo "Moving ${targetVolume}/Extra folder to ${backupDir}/Extra" >>"${logFile}"
cp -pR "${targetVolume}/Extra" "${backupDir}/Extra"
fi
chflags -R nohidden "$backupDir" # Remove the invisible flag of files in the backups
echo "======================================================" >>"${logFile}"
echo "==============================================="
echo "END - Pre-Install Script"
branches/blackosx/package/Resources/id.lproj/Localizable.strings
4747
4848
4949
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
6650
6751
6852
"Module_title" = "Modul Chameleon";
"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.";
"AMDGraphicsEnabler_title" = "AMDGraphicsEnabler";
"AMDGraphicsEnabler_description" = "Kode GraphicsEnabler ATI ( > r784) yang telah dideportasi ke modul.
Kode ini tidak mendukung adanya 'legacy' dari kartu VGA ATI.
Jika kartu VGA HD anda didukung pada kode sebelumnya dan menemukan kejanggalan dengan kode ini (masalah), harap laporkan ke:
http://forge.voodooprojects.org/p/chameleon/issues/
Hal yang sama berlaku pada kartu VGA yang belum didukung didalam kode ini.
Hanya kartu VGA yang dikenali dan bekerja dengan baik yang akan ditambahkan.";
"ATiGraphicsEnabler_title" = "ATiGraphicsEnabler";
"ATiGraphicsEnabler_description" = "KOde GraphicsEnabler ATI ( < r784) yang telah dideportasi ke modul.
Dukungakn untuk kartu VGA 'legacy'...
Berdasarkan karya Meklort.";
"IntelGraphicsEnabler_title" = "IntelGraphicsEnabler";
"IntelGraphicsEnabler_description" = "Mengaktifkan sebagian kartu Intel untuk digunakan tanpa patch/driver apapun, sebagian besar untuk yang versi 'mobile'.";
"klibc_title" = "klibc";
"klibc_description" = "Modul ini menyediakan librari standar c kepada modul untuk menyambung jika librari yang disediakan oleh chameleon kurang memadai.
Biasanya digunakan oleh librari uClibc++.
branches/blackosx/package/Resources/en.lproj/Localizable.strings
4646
4747
4848
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
6649
6750
6851
"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.";
"AMDGraphicsEnabler_title" = "AMDGraphicsEnabler";
"AMDGraphicsEnabler_description" = "The GraphicsEnabler ATI code ( > r784) ported to a module.
This code has no support for 'legacy' ATI cards.
If your HD card was supported on the old code and you find
it missing on this, please file an issue at:
http://forge.voodooprojects.org/p/chameleon/issues/
The same applies to any missing card on this code.
Only cards known to work will be added.";
"ATiGraphicsEnabler_title" = "ATiGraphicsEnabler";
"ATiGraphicsEnabler_description" = "The GraphicsEnabler ATI code ( < r784) ported to a module.
Support for 'legacy' cards...
Based on Meklort's work.";
"IntelGraphicsEnabler_title" = "IntelGraphicsEnabler";
"IntelGraphicsEnabler_description" = "Enables a few Intel cards to be used out of the box, mostly mobile ones.";
"klibc_title" = "klibc";
"klibc_description" = "This module provides a standard c library for modules to link to if the library provided by chameleon is insufficient.
This is currently only used by the uClibc++ library.
branches/blackosx/package/Resources/pt-PT.lproj/Localizable.strings
4444
4545
4646
47
47
4848
4949
5050
// 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.";
"klibc_title" = "klibc";
branches/blackosx/package/Resources/es.lproj/Localizable.strings
9090
9191
92
9392
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
11193
11294
"AMDGraphicsEnabler_title" = "AMDGraphicsEnabler";-
http://forge.voodooprojects.org/p/chameleon/issues/-
-
"ATiGraphicsEnabler_title" = "ATiGraphicsEnabler";-
Soporte para tarjetas ATI 'legacy'...-
Basado en el trabajo de Meklort.";-
-
"IntelGraphicsEnabler_title" = "IntelGraphicsEnabler";-
-
"klibc_title" = "klibc";
branches/blackosx/package/Resources/pl.lproj/Localizable.strings
4747
4848
4949
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
6750
6851
6952
"Module_title" = "ModuBy";
"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.";
"AMDGraphicsEnabler_title" = "AMDGraphicsEnabler";
"AMDGraphicsEnabler_description" = "The GraphicsEnabler ATI code ( > r784) ported to a module.
This code has no support for 'legacy' ATI cards.
If your HD card was supported on the old code and you find
it missing on this, please file an issue at:
http://forge.voodooprojects.org/p/chameleon/issues/
The same applies to any missing card on this code.
Only cards known to work will be added.";
"ATiGraphicsEnabler_title" = "ATiGraphicsEnabler";
"ATiGraphicsEnabler_description" = "The GraphicsEnabler ATI code ( < r784) ported to a module.
Support for 'legacy' cards...
Based on Meklort's work.";
"IntelGraphicsEnabler_title" = "IntelGraphicsEnabler";
"IntelGraphicsEnabler_description" = "Enables a few Intel cards to be used out of the box, mostly mobile ones.";
"klibc_title" = "klibc";
Aktualnie jest u|ywane tylko przez bibliotek uClibc++.
branches/blackosx/package/Resources/sr.lproj/Localizable.strings
5151
5252
5353
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
7054
7155
7256
"Module_title" = "Chameleon Moduli";
"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.";
"AMDGraphicsEnabler_title" = "AMDGraphicsEnabler";
"AMDGraphicsEnabler_description" = "Kod za ATI grafi-ku aktivaciju ( > r784) prenesen na modul.
Ovaj kod nema podraku za 'legacy' ATI kartice.
Ako je Vaaa HD kartica bila podr~ana na starom kodu i nedostaje vam na ovom, molimo poaaljite upit na:
http://forge.voodooprojects.org/p/chameleon/issues/
Isto vrijedi i za bilo koju drugu karticu kojoj nedostaje ovaj kod.
Karticama za koje znamo da rade, biti e dodan kod.";
"ATiGraphicsEnabler_title" = "ATiGraphicsEnabler";
"ATiGraphicsEnabler_description" = "Kod za ATI grafi-ku aktivaciju ( > r784) prenesen na modul.
Podraka za 'legacy' karte...
Bazirane na Meklortu rade.";
"IntelGraphicsEnabler_title" = "IntelGraphicsEnabler";
"IntelGraphicsEnabler_description" = "Uklju-uje nekoliko Intel kartica koje se koriste out of the box, uglavnom mobilne.";
"klibc_title" = "klibc";
"klibc_description" = "Ovaj modul omoguava standard c biblioteku za module za povezivanje ako chameleon biblioteka nije dovoljna.
Ovo se trenutno koristi samo sa uClibc++ bibliotekom.
branches/blackosx/package/Resources/de.lproj/Localizable.strings
4545
4646
4747
48
48
4949
5050
5151
// Modules
// ----------------------------------------------------------------------------
"Module_title" = "Chameleon Module";
"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.";
"klibc_title" = "klibc";

Archive Download the corresponding diff file

Revision: 1771