Mostrando mensaje 7879
|
|
< Anterior | Siguiente >
|
|
Asunto: | Re: [nave] Problemas con extension | Fecha: | Martes, 24 de Enero, 2006 23:31:48 (+0100) | Autor: | srxo1978 <srxo1978 @.....com>
|
Carlos escribió:
> srxo1978 escribió:
>> Hola Una cosa alguien le podría echar un vistazo a la extensión
>> original y decirme donde tengo el fallo si lo ve o decirme como lo
>> haría ya no se por donde meterle mano al asunto.
>> Merci
>
> Si te refieres al install.js, quedaría algo así:
>
> // XpiInstaller
> // By Pike (Heavily inspired by code from Henrik Gemal and Stephen
> Clavering)
>
> var XpiInstaller = {
>
> // --- Editable items begin ---
> extFullName: '@EXT_BRAND_NAME@', // The name displayed to the user
> (don't include the version)
> extShortName: '@EXT_NAME@', // The leafname of the JAR file
> (without the .jar part)
> extVersion: '@EXT_VERSION@',
> extAuthor: 'Jason Adams',
> extLocaleNames: ['@AB_CD@'],
> extSkinNames: ['classic'], // e.g. ['classic', 'modern']
> extPostInstallMessage: null, // Set to null for no post-install
> message
> // --- Editable items end ---
>
> profileInstall: true,
> silentInstall: true,
>
> install: function() {
> var jarName = this.extShortName + '-@AB_CD@...';
> var profileDir = Install.getFolder('Profile', 'chrome');
> var prefDir = Install.getFolder('Program', 'defaults/pref');
>
> Sería la parte del principio, el resto no cambia.
Gracias carlos lo probare, la otra cuestión que tengo pendiente es lo de
la compatibilidad de la extensión que oscar en otro mensaja me comenta
que no me invente cosas, pero en el install.rdf hay esto y crei que
deberia ponerlo, esto es lo que ahi en el install.rdf: Aunque en la
version que tengo ahora la 0.2.4 en firefox y thunderbird en maxversion
pone 1.5+ en vez de 1.5.0.*
<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.0</em:minVersion>
<em:maxVersion>1.5.0.*</em:maxVersion>
</Description>
</em:targetApplication>
<!-- Thunderbird -->
<em:targetApplication>
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>1.0</em:minVersion>
<em:maxVersion>1.5.0.*</em:maxVersion>
</Description>
</em:targetApplication>
<!-- Flock -->
<em:targetApplication>
<Description>
<em:id>{a463f10c-3994-11da-9945-000d60ca027b}</em:id>
<em:minVersion>1.0+</em:minVersion>
<em:maxVersion>1.0+</em:maxVersion>
</Description>
</em:targetApplication>
<!-- Netscape -->
<em:targetApplication>
<Description>
<em:id>{3db10fab-e461-4c80-8b97-957ad5f8ea47}</em:id>
<em:minVersion>8.0</em:minVersion>
<em:maxVersion>8.0.4</em:maxVersion>
</Description>
</em:targetApplication>
<!-- Mozilla -->
<em:targetApplication>
<Description>
<em:id>{86c18b42-e466-45a9-ae7a-9b95ba6f5640}</em:id>
<em:minVersion>1.4</em:minVersion>
<em:maxVersion>1.7.7</em:maxVersion>
</Description>
</em:targetApplication>
<!-- Seamonkey -->
<em:targetApplication>
<Description>
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
<em:minVersion>0.9</em:minVersion>
<em:maxVersion>1.0</em:maxVersion>
</Description>
</em:targetApplication>
y en el extensión.cfg puse esto:
# Set to 1 if the extensión works in the application. Else, set to 0
set_value $MOZ $VALUE 1
set_value $FF $VALUE 1
set_value $TB $VALUE 1
# Se pueden añadir el resto de productos nuevos
set_value $NVU $VALUE 0
set_value $SM $VALUE 1
set_value $SB $VALUE 0
set_value $NS $VALUE 1
set_value $FL $VALUE 1
y en version.cfg puse esto:
# Sufijo producto
#PROD_SUFIJO="moz17 moz18 tb "
# Poner los sufijos de la plataforma para esta version
#PLAT_SUFIJO="linux win mac"
#MULTI=$PROD_SUFIJO$PLAT_SUFIJO
EXT_VERSION="0.2.3"
# Descomentar sólo si $EXT_VERSION no va en el nombre del xpi
#EXT_VERSION_NAME=
if [ "$(get_value $MOZ $VALUE)" = 1 ]; then
# Set these to appropiate value
set_value $MOZ $MIN_VERSION "1.4"
set_value $MOZ $MAX_VERSION "1.7.7"
fi
if [ "$(get_value $FF $VALUE)" = 1 ]; then
# Set these to appropiate value
set_value $FF $MIN_VERSION "1.0"
set_value $FF $MAX_VERSION "1.5.0.*"
fi
if [ "$(get_value $TB $VALUE)" = 1 ]; then
# Set these to appropiate value
set_value $TB $MIN_VERSION "1.0"
set_value $TB $MAX_VERSION "1.5.0.*"
fi
if [ "$(get_value $SM $VALUE)" = 1 ]; then
# Set these to appropiate value
set_value $SM $MIN_VERSION "0.9"
set_value $SM $MAX_VERSION "1.0"
fi
if [ "$(get_value $NS $VALUE)" = 1 ]; then
# Set these to appropiate value
set_value $NS $MIN_VERSION "8.0"
set_value $NS $MAX_VERSION "8.0.4"
fi
if [ "$(get_value $FL $VALUE)" = 1 ]; then
# Set these to appropiate value
set_value $FL $MIN_VERSION "1.0+"
set_value $FL $MAX_VERSION "1.0+"
fi
# Other optional parameters for locales, etc
MOZILLA_LOCALE_VERSION="1.5"
MOZILLA_REGION_VERSION="1.5"
# End parent app definition
Perdona por hacerlo tan largo pero no se me ocurre la manera de que lo
veas como lo tengo. Merci
-~--------------------------------------------------------------------~-
Compra o vende de manera diferente en www.egrupos.net
|