tis-pale-moon icon

Pale Moon

Silent install package for Pale Moon

33.7.0-1

  • package: tis-pale-moon
  • name: Pale Moon
  • version: 33.7.0-1
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: http://www.palemoon.org/licensing.shtml
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 31.07 Mo
  • homepage : https://www.palemoon.org/download.shtml

package           : tis-pale-moon
version           : 33.7.0-1
architecture      : x86
section           : base
priority          : optional
name              : Pale Moon
categories        : 
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Pale Moon is an Open Source Web browser based on Goanna
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Pale Moon est un navigateur Web Open Source basé sur Goanna
description_pl    : Pale Moon to przeglądarka internetowa o otwartym kodzie źródłowym oparta na Goannie
description_de    : Pale Moon ist ein Open-Source-Webbrowser, der auf Goanna basiert
description_es    : Pale Moon es un navegador web de código abierto basado en Goanna
description_pt    : O Pale Moon é um navegador Web de código aberto baseado no Goanna
description_it    : Pale Moon è un browser web open source basato su Goanna
description_nl    : Pale Moon is een Open Source webbrowser gebaseerd op Goanna
description_ru    : Pale Moon - веб-браузер с открытым исходным кодом, основанный на Goanna
audit_schedule    : 
editor            : 
keywords          : 
licence           : http://www.palemoon.org/licensing.shtml
homepage          : https://www.palemoon.org/download.shtml
package_uuid      : 67b11d2c-a009-4555-afef-955a841653da
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 3c29b8f8956d43f432aefcc3c7342f9f3f211b8d4548b90298276a9c1d29dec5
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-13T10:07:56.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : kvv9vTr/OG2fn8uO+4FantH5knuIVmP7nhOgP1iFAd73aDUHhT42CrZ+zk2GmgleffJCG+5nc3ysn9510UgK4MbbckyPr6FSt56YWn3QsgiBclqkgefDIpiYYnrIPe3/Gy+ZgXK/0wvnd1sJRQOtcND4EphV9f8LJsIxuV2ZUanac2N5Y7/ye4oHMyswlEJUqsnbkwKISq9a9TnqeFlfz47/cDWEeeug/qKXYHN7qztxZI8lMheVs0+eEBc6bWHCz2z8UQES3oUNrwnOs9NB4cH6J4qOcidbBdMOmf0po1AJ1HhrPxghFjmRuE3YvYrshXYUGbpkL7BCTxTCsycIDQ==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"Pale Moon 33.3.0 (x64 en-US)",
   "name":"Pale Moon 33.3.0 (x64 en-US)",
   "version":"33.3.0",
   "install_date":"",
   "install_location":"C:\\Program Files\\Pale Moon",
   "uninstall_string":"\"C:\\Program Files\\Pale Moon\\uninstall\\helper.exe\"",
   "publisher":"Moonchild Productions",
   "system_component":0,
   "win64":true
  }

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('palemoon-*.exe')[0]
    # Récupérer la version depuis l'objet control
    version = control.get_software_version()

    # Construire dynamiquement la clé de registre avec la version récupérée
    key = f'Pale Moon {version} (x86 en-US)'
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
        key=key,
        min_version=control.get_software_version(),
    )




# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
import re



def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

  
    # URL de base pour Pale Moon
    data = requests.head('https://www.palemoon.org/download.php?mirror=us&bits=32&type=installer',allow_redirects=True,proxies=proxies)
    download_url = data.url  
    latest_bin = download_url.split("/")[-1]
    # Utilisez une expression régulière pour extraire la version
    match = re.search(r'(\d+\.\d+\.\d+)', latest_bin)
    if match:
        version = match.group(0)
    else:
        version = ''

    print(version)    
            
            

  
    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.exe'):
        if f != latest_bin:
            remove_file(f)

           
    
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
60c641f86e3109a723f838bd9c876557b23e0af626dec67b7ead9efdac23b33b : WAPT/control
3c29b8f8956d43f432aefcc3c7342f9f3f211b8d4548b90298276a9c1d29dec5 : WAPT/icon.png
9e13e4dfc4defc86e15e15557f5dbd7466484840e3efc0c677a86ae3e39be3ac : luti.json
23254a109bdd7e9a3890a2a78763bc575d9e335b6e4552c574ea9441e02be4c6 : palemoon-33.7.0.win32.installer.exe
d84efd7edb5da7180eb2e1db7093f679a5dab0ae217d2d823faf4b5bde2359aa : setup.py
c477ea86865f4d48258cd3d5c26cd86bd4f634a1243febab4c86281241690ddd : update_package.py