|
Lines 70-81
Link Here
|
| 70 |
|
70 |
|
| 71 |
|
71 |
|
| 72 |
const ABI_PLATFORM_LINUX="Linux_x86-gcc3"; |
72 |
const ABI_PLATFORM_LINUX="Linux_x86-gcc3"; |
|
|
73 |
const ABI_PLATFORM_FREEBSD="FreeBSD"; |
| 73 |
const ABI_PLATFORM_WIN="WINNT_x86-msvc"; |
74 |
const ABI_PLATFORM_WIN="WINNT_x86-msvc"; |
| 74 |
const ABI_PLATFORM_DARWIN_PPC="Darwin_ppc-gcc3"; |
75 |
const ABI_PLATFORM_DARWIN_PPC="Darwin_ppc-gcc3"; |
| 75 |
const ABI_PLATFORM_DARWIN_X86="Darwin_x86-gcc3"; |
76 |
const ABI_PLATFORM_DARWIN_X86="Darwin_x86-gcc3"; |
| 76 |
const ABI_PLATFORM_OS2="OS2_x86-gcc3"; |
77 |
const ABI_PLATFORM_OS2="OS2_x86-gcc3"; |
| 77 |
|
78 |
|
| 78 |
const APP_PLATFORM_LINUX="linux"; |
79 |
const APP_PLATFORM_LINUX="linux"; |
|
|
80 |
const APP_PLATFORM_FREEBSD="FreeBSD"; |
| 79 |
const APP_PLATFORM_WIN="win"; |
81 |
const APP_PLATFORM_WIN="win"; |
| 80 |
const APP_PLATFORM_MAC="mac"; |
82 |
const APP_PLATFORM_MAC="mac"; |
| 81 |
const APP_PLATFORM_OS2="os2"; |
83 |
const APP_PLATFORM_OS2="os2"; |
|
Lines 107-127
Link Here
|
| 107 |
// which platform? |
109 |
// which platform? |
| 108 |
function getPlatform() { |
110 |
function getPlatform() { |
| 109 |
var platformStr; |
111 |
var platformStr; |
| 110 |
var platformNode = ""; |
112 |
var platformNode = APP_PLATFORM_OTHER; |
| 111 |
|
113 |
|
| 112 |
if('platform' in Install) { |
114 |
if('platform' in Install) { |
| 113 |
platformStr = new String(Install.platform); |
115 |
platformStr = new String(Install.platform); |
| 114 |
|
116 |
|
| 115 |
if (!platformStr.search(/^Macintosh/)) |
117 |
if (platformStr.search(/^Macintosh/) >= 0) |
| 116 |
platformNode = APP_PLATFORM_MAC; |
118 |
platformNode = APP_PLATFORM_MAC; |
| 117 |
else if (!platformStr.search(/^Win/)) |
119 |
else if (platformStr.search(/^Win/) >= 0) |
| 118 |
platformNode = APP_PLATFORM_WIN; |
120 |
platformNode = APP_PLATFORM_WIN; |
| 119 |
else if (!platformStr.search(/Linux/)) |
121 |
else if (platformStr.search(/Linux/) >= 0) |
| 120 |
platformNode = APP_PLATFORM_LINUX; |
122 |
platformNode = APP_PLATFORM_LINUX; |
| 121 |
else if (!platformStr.search(/^OS\/2/)) |
123 |
else if (platformStr.search(/FreeBSD/) >= 0) |
|
|
124 |
platformNode = APP_PLATFORM_FREEBSD; |
| 125 |
else if (platformStr.search(/^OS\/2/) >= 0) |
| 122 |
platformNode = APP_PLATFORM_OS2; |
126 |
platformNode = APP_PLATFORM_OS2; |
| 123 |
else |
|
|
| 124 |
platformNode = APP_PLATFORM_OTHER; |
| 125 |
} |
127 |
} |
| 126 |
|
128 |
|
| 127 |
return platformNode; |
129 |
return platformNode; |
|
Lines 161-166
Link Here
|
| 161 |
case APP_PLATFORM_LINUX: |
163 |
case APP_PLATFORM_LINUX: |
| 162 |
addDirectory("", "platform/"+ABI_PLATFORM_LINUX+"/components", fComponents, ""); |
164 |
addDirectory("", "platform/"+ABI_PLATFORM_LINUX+"/components", fComponents, ""); |
| 163 |
break; |
165 |
break; |
|
|
166 |
case APP_PLATFORM_FREEBSD: |
| 167 |
addDirectory("", "platform/"+ABI_PLATFORM_FREEBSD+"/components", fComponents, ""); |
| 168 |
break; |
| 164 |
case APP_PLATFORM_WIN: |
169 |
case APP_PLATFORM_WIN: |
| 165 |
addDirectory("", "platform/"+ABI_PLATFORM_WIN+"/components", fComponents, ""); |
170 |
addDirectory("", "platform/"+ABI_PLATFORM_WIN+"/components", fComponents, ""); |
| 166 |
break; |
171 |
break; |
|
Lines 171-176
Link Here
|
| 171 |
case APP_PLATFORM_OS2: |
176 |
case APP_PLATFORM_OS2: |
| 172 |
addDirectory("", "platform/"+ABI_PLATFORM_OS2+"/components", fComponents, ""); |
177 |
addDirectory("", "platform/"+ABI_PLATFORM_OS2+"/components", fComponents, ""); |
| 173 |
break; |
178 |
break; |
|
|
179 |
case APP_PLATFORM_OTHER: |
| 180 |
alert("Unsupported platform, no Enigmail support currently available."); |
| 181 |
cancelInstall(ACCESS_DENIED); |
| 174 |
} |
182 |
} |
| 175 |
|
183 |
|
| 176 |
err = getLastError(); |
184 |
err = getLastError(); |