diff --git a/docs/scripts/getFirefox.md b/docs/scripts/getFirefox.md index 638c4a1..5377a0c 100644 --- a/docs/scripts/getFirefox.md +++ b/docs/scripts/getFirefox.md @@ -93,11 +93,13 @@ lancer le script sans arguments: `getFirefox`ou avec l'option help `getFirefox h getFirefox +latest : installation de Firefox Release getFirefox +beta : installation de Firefox Beta + getFirefox +dev : installation de Firefox Developer Edition getFirefox +nightly : installation de Firefox Nightly getFirefox +esr : installation de Firefox ESR ---- getFirefox -latest : désinstallation Firefox Release getFirefox -beta : désinstallation Firefox Beta + getFirefox -dev : installation de Firefox Developer Edition getFirefox -nightly : désinstallation Firefox Nightly getFirefox -esr : désinstallation Firefox ESR ---- @@ -164,20 +166,21 @@ vVVv vVVv ': |_| |_| |_|\___/___|_|_|_|\__,_| '' une **copie** sera utilisée pour le profil latest (ou ESR). le passage d'une version paquet Debian à une version Mozilla Release (ou ESR) utilisera donc une copie du profil en cours. * les canaux ***Release, Beta, Nightly peuvent coexister*** -* chaque canal peut être lancé en console: `firefox-latest` `firefox-beta` `firefox-nightly` `firefox-esr` +* chaque canal peut être lancé en console: `firefox-latest` `firefox-beta` `firefox-dev` `firefox-nightly` `firefox-esr` * le canal _latest_ (ou _esr_) peut lui être lancé avec: `firefox` -3 autres canaux sont possibles: +4 autres canaux sont possibles: * Beta, qui deviendra la future version Release + * Developer Edition, basée sur la beta avec des outils de développement web * Nightly, réservé aux aventuriers, mise à jour tous les jours [Mozilla Nightly](https://blog.nightly.mozilla.org/) * ESR, mise à jour majeure toutes les ans environ, avec support à plus long terme. en savoir plus [Mozilla ESR](https://developer.mozilla.org/fr/Firefox/Firefox_ESR) les canaux par ordre croissant de versions: -` ESR <= release < beta==dev edition < nightly ` +` ESR <= release < beta==developer edition < nightly ` la version **aurora** est abandonnée et la **developer edition** est basée sur la version beta @@ -206,11 +209,12 @@ les versions installées par ce script. \__, |\___|\__|_| |_|_| \___|_| \___/_/\_\ |___/ - pour Debian, version 0.5.0 - 19/07/2017 + pour Debian, version 0.5.2 - 20/07/2017 Firefox installé(s): latest: 54.0.1 beta: 55.0 + dev: 55.0 nightly: 56.0a1 Version Firefox en ligne: diff --git a/scripts/diag_getFirefox b/scripts/diag_getFirefox index 6732bac..6b9db98 100755 --- a/scripts/diag_getFirefox +++ b/scripts/diag_getFirefox @@ -13,24 +13,23 @@ f__testWget(){ } for architecture in linux linux64; do - echo "" - echo "Architecture: $architecture" - echo "=====================" - for product in latest esr beta nightly dev; do - if [ "$product" == "latest" ]; then - recup_url="https://download.mozilla.org/?product=firefox-$product&os=$architecture&lang=fr" - elif [ "$product" == "esr" ]; then - recup_url="https://download.mozilla.org/?product=firefox-$product-latest&os=$architecture&lang=fr" - elif [ "$product" == "beta" ]; then - recup_url="https://download.mozilla.org/?product=firefox-beta-latest&os=$architecture&lang=fr" - elif [ "$product" == "nightly" ]; then - recup_url="https://download.mozilla.org/?product=firefox-$product-latest-l10n-ssl&os=linux&lang=fr" - elif [ "$product" == "dev" ]; then - recup_url="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=$architecture&lang=fr" - fi +echo "" +echo "Architecture: $architecture" +echo "=====================" +for product in latest esr beta dev nightly; do + if [ "$product" == "latest" ]; then + recup_url="https://download.mozilla.org/?product=firefox-$product&os=$architecture&lang=fr" + elif [ "$product" == "esr" ]; then + recup_url="https://download.mozilla.org/?product=firefox-$product-latest&os=$architecture&lang=fr" + elif [ "$product" == "beta" ]; then + recup_url="https://download.mozilla.org/?product=firefox-beta-latest&os=$architecture&lang=fr" + elif [ "$product" == "dev" ]; then + recup_url="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=$architecture&lang=fr" + elif [ "$product" == "nightly" ]; then + recup_url="https://download.mozilla.org/?product=firefox-$product-latest-l10n-ssl&os=linux&lang=fr" ;fi - f__testWget "$product" "$recup_url" - done + f__testWget "$product" "$recup_url" +done done rm tempoTest diff --git a/scripts/getFirefox b/scripts/getFirefox index d30dcfd..1559b0b 100755 --- a/scripts/getFirefox +++ b/scripts/getFirefox @@ -1,6 +1,6 @@ #!/bin/bash -version=0.5.1 +version=0.5.2 date="20/07/2017" projet="Kyodev" contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues" @@ -241,11 +241,13 @@ cat << 'EOF' getFirefox +latest : installation de Firefox Release getFirefox +beta : installation de Firefox Beta + getFirefox +dev : installation de Firefox Developer Edition getFirefox +nightly : installation de Firefox Nightly getFirefox +esr : installation de Firefox ESR ---- getFirefox -latest : désinstallation Firefox Release getFirefox -beta : désinstallation Firefox Beta + getFirefox -dev : installation de Firefox Developer Edition getFirefox -nightly : désinstallation Firefox Nightly getFirefox -esr : désinstallation Firefox ESR ---- @@ -271,7 +273,7 @@ ffx_versionFF(){ stockUrlOnline="$(wget -q --tries=2 --timeout=15 --user-agent=$user_agent -O - $urlOnline)" verLatest="$(echo $stockUrlOnline | grep -Eo 'data-latest-firefox="[0-9\.]+"' | grep -Eo '[0-9\.]+')" verEsr="$(echo $stockUrlOnline | grep -Eo 'data-esr-versions="[0-9\.]+"' | grep -Eo '[0-9\.]+')" - for product in latest esr beta nightly; do + for product in latest esr beta dev nightly; do if [ -x "$dirInstall$product/firefox" ]; then versionInstall+="\n $product: $($dirInstall$product/firefox -v | grep -Eo '[0-9].*')" fi @@ -339,12 +341,14 @@ ffx_profileIni(){ # calcul url téléchargement, assigne $recup_url ffx_recup_url(){ - if [ "$product" == "latest" ]; then + if [ "$product" == "latest" ]; then recup_url="https://download.mozilla.org/?product=firefox-$product&os=$architecture&lang=fr" elif [ "$product" == "esr" ]; then recup_url="https://download.mozilla.org/?product=firefox-$product-latest&os=$architecture&lang=fr" elif [ "$product" == "beta" ]; then recup_url="https://download.mozilla.org/?product=firefox-beta-latest&os=$architecture&lang=fr" + elif [ "$product" == "dev" ]; then + recup_url="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=$architecture&lang=fr" elif [ "$product" == "nightly" ]; then recup_url="https://download.mozilla.org/?product=firefox-$product-latest-l10n-ssl&os=linux&lang=fr" ;fi } @@ -459,10 +463,10 @@ case "$1" in opType="upgrade" fscript_version fscript_dl ;; # upgrade script si maj possible - +latest | +esr | +beta | +nightly ) + +latest | +esr | +dev | +beta | +nightly ) product="$(echo $1 | sed 's/+//')" ffx_install ;; # installation plugin - -latest | -esr | -beta | -nightly ) + -latest | -esr | -dev | -beta | -nightly ) product="$(echo $1 | sed 's/-//')" ffx_remove ;; # désinstallation plugin "manuel" ) diff --git a/scripts/getFirefox_changelog.md b/scripts/getFirefox_changelog.md index b538030..d84a22b 100644 --- a/scripts/getFirefox_changelog.md +++ b/scripts/getFirefox_changelog.md @@ -5,16 +5,16 @@ * installation manuelle archive * téléchargement archive * plus d'architecture? (arm)? -* voir alternatives par ordre croissant, latest ou esr sinon beta sinon nightly -* récupérer icône aurora pour beta? +* voir alternatives par ordre croissant, latest ou esr sinon beta sinon nightly (dev out) * améliorer les installations pour autres users * version enligne autre que esr et release -* dev edition? -## 0.5.1 20/07/17 +## 0.5.2 20/07/17 * fix bug: détection profil existant dans profile.ini +* mieux: developer edition. malgré sa gestion autonome du profil, fonctionnement du script non modifié + si jamais changement futur ## 0.5.0 19/07/17