tis-simplenote icon

Simplenote

Silent install package for Simplenote

2.22.2-1

  • package: tis-simplenote
  • name: Simplenote
  • version: 2.22.2-1
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: GPL-2.0 license
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 102.26 Mo
  • homepage : https://simplenote.com/

package           : tis-simplenote
version           : 2.22.2-1
architecture      : x64
section           : base
priority          : optional
name              : Simplenote
categories        : 
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Light, clean and free. Simplenote
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Léger, propre et gratuit. Simplenote
description_pl    : Lekki, czysty i darmowy. Simplenote
description_de    : Leicht, sauber und kostenlos. Simplenote
description_es    : Ligero, limpio y gratuito. Simplenote
description_pt    : Leve, limpo e gratuito. Simplenote
description_it    : Leggero, pulito e gratuito. Simplenote
description_nl    : Licht, schoon en gratis. Simplenote
description_ru    : Легкий, чистый и бесплатный. Simplenote
audit_schedule    : 
editor            : 
keywords          : 
licence           : GPL-2.0 license
homepage          : https://simplenote.com/
package_uuid      : d44f8ce0-57d8-4d7b-b4cb-d81e8eb825aa
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : c080e3c4fee7c4c0def06957146f4c78d892d995ffbb9c5eb49e26a41dc0feb5
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-09-30T12:22:49.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         : YIwomH5N+LzvTDA9b1e1aG77M890eLMrB7VqiF2QPItBUsNmQ01ISsGiUtTKSPmSVNz401WYFX1ZUKyZuAiD34CTnqJ19ixvWJbRtBIjXJDRMVf5O5tSAMf09g3VStAm/0LaC8HkN8AdCr1lESF7GhuJgzmdcql2/HWojJXxFJtYOchKGwoUVqdgd9Vn1m0HgWuLmVwaLpThGcc2inq2RU8Or+qiO3gWhLBe2Tz6Ga4CU8sAJ++BmSlKQnNplhIROav3ngmyn2eLmFPRo/uG+GqCEy59dtO6M+aA+ex/7XqJ2V0MRTs0s56e9P9lqYoJbJ3oWKmQJIe8tEZ5Rt7nAg==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# 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('Simplenote-*.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/S /nolaunch /allusers',
        key='150392e9-d39c-5b1e-8397-b73667931335',
        min_version=control.get_software_version()

    )



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

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


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    dict_arch = {
        "x64" :"-x64.exe",
        "x86" : "-ia32.exe"
    }
    git_repo = "Automattic/simplenote-electron"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('.exe') and dict_arch[control.architecture]  in download["browser_download_url"]:
            url_dl = download["browser_download_url"]
            version = json_load["name"].split(" ")[-1]
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.exe'):
        if f != filename:
            remove_file(f)

   
    control.set_software_version(version)
    control.save_control_to_wapt()

c7f3329ac44f8dbbec247752837470bc8698f159a1e996724750586db325c5fb : Simplenote-win-2.22.2-x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
f8f844c8ecda6be36453ec17fca24be6dca09ae4097d10d20051800741d82d04 : WAPT/control
c080e3c4fee7c4c0def06957146f4c78d892d995ffbb9c5eb49e26a41dc0feb5 : WAPT/icon.png
aecae330f09197ed8e7179463e99044ca0e8f987de32070f695481da0e3e0a5a : luti.json
754946f447b12b7cd51262266d7f92d0d397a38867241759ac8b75b58c7c1aa7 : setup.py
704f80816cec88c152b8085714e860c840355ed28a6c82726285ef7f97dca1f3 : update_package.py