tis-notepadnext icon

NotepadNext

Silent install package for NotepadNext

0.13-1
Media
Media

  • package: tis-notepadnext
  • name: NotepadNext
  • version: 0.13-1
  • categories: Media
  • maintainer: WAPT Team,Tranquil IT,Jofrey Le Piquet
  • target_os: macos
  • impacted_process: NotepadNext
  • architecture: x64
  • signature_date:
  • size: 29.71 Mo

package           : tis-notepadnext
version           : 0.13-1
architecture      : x64
section           : base
priority          : optional
name              : NotepadNext
categories        : Media
maintainer        : WAPT Team,Tranquil IT,Jofrey Le Piquet
description       : A cross-platform, reimplementation of Notepad++.
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : macos
min_wapt_version  : 2.4
sources           : https://github.com/dail8859/NotepadNext/releases
installed_size    : 
impacted_process  : NotepadNext
description_fr    : Une réimplémentation multiplateforme de Notepad++.
description_pl    : Wieloplatformowa reimplementacja Notepad++.
description_de    : Eine plattformübergreifende Neuimplementierung von Notepad++.
description_es    : Una reimplementación multiplataforma de Notepad++.
description_pt    : Uma reimplementação multiplataforma do Notepad++.
description_it    : Una reimplementazione multipiattaforma di Notepad++.
description_nl    : Een cross-platform herimplementatie van Notepad++.
description_ru    : Кроссплатформенная реализация Notepad++.
audit_schedule    : 
editor            : 
keywords          : notepadnext
licence           : 
homepage          : 
package_uuid      : ba6a83b8-1c83-4cfe-8710-a9ba46f74f79
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/dail8859/NotepadNext/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4a310b55f8d8270b07236df09dfa7c437017f80f2a19488e7ce566722e59c662
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-02-06T00:02:47.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         : fAHFXzOqhtx7KTL0NwvksrAisRMWmn/PlR5c1VW62+Z2hVKHwMZf/6/lwoAOZnC6FScUfgi1DduUv0iCAqFhB6exa3dzeqd4SvjTdpEAWXqQUGOe6Z7+8V+RQCEmSO81aiTyc4NaPtSa6x+GWZkFaGK2OC98v7IcjVTWT0nfv1xqZ+ZoTNVb80+axu8QYPhlJODMZKYaQsSGV1GHSqXGzsLdRadPpjv9n/MxEBmCsT1m4bqnofU0sNsopv2GdCtzvjZKbZWQQ5QZcsdk8dXb8MJ8j2tjWT5OogcRLIweHwQNkzFJpIcrG8J8N2Tcvfy9VsUQ6ak3Fq5qigiw5OEFSg==

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


def install():
    bin_name = glob.glob("NotepadNext*.dmg")[0]

    install_dmg(
        bin_name,
        min_version=control.get_software_version(),
    )


def uninstall():
    uninstall_app("NotepadNext")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/dail8859/NotepadNext/releases/latest"
    download_dict = {
        "windows-x64": "-Installer.exe",
        "linux": "x86_64.AppImage",
        "macos-x64": ".dmg",
    }

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    version = json_load["tag_name"].replace("v", "")
    for to_download in json_load["assets"]:
        if download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)

    # Checking version from file
    if get_os_name() == "Windows" and "windows" in control.target_os.lower():
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file, 4) == Version(version, 4):
            print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
        else:
            error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

88f74d7c5c8b1824396535cde02505b898d9e8046aab2012b73771803b409a10 : NotepadNext-v0.13.dmg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
58ecc5a4356c68ca3ae484df9aec0c75b66950e3b3c117d299358281737f849e : WAPT/control
4a310b55f8d8270b07236df09dfa7c437017f80f2a19488e7ce566722e59c662 : WAPT/icon.png
1916b622d46346068708f23753f09bf0859e194ef35a2e1d808b0478ca08aeca : luti.json
0c227512c4e2af164d59e06b01da4709b947049b58a111f0724684034f2a951a : setup.py
9d7882598f1f715f326ac43fd2a15b4db58924ae6a8f4640d335c662dc7f8888 : update_package.py