tis-notepadnext icon

NotepadNext

Silent install package for NotepadNext

0.12-1

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

package           : tis-notepadnext
version           : 0.12-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         : windows
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      : 366fb77b-34dc-45b6-8411-d2c05f6a086e
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/dail8859/NotepadNext/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 20e9156528469f77f405dcca6ce0608c70eafb7857a8f9b14de38c186c67134a
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-30T12:14:39.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         : NUWjK3yRmU8yuecMPjX42Yk3yzZ9y3sBy42sIytUkxt2iuXMvEXv4In9B4t+y7I/mTEKSaitNl72PhKrWWRxhY9h7aCzo+h7dG3rMKuOUOqRQWbxM3g9BU8dmVtC4Q5EWp5S1K9FKEjDpxOgCvgTfq+1wBuM1NKjqSrw+ch975TFtyRVELfnIBHwjRXuORXbabCcwHNij3I6GBBfGF9xOXVAnbtynyeA822bA5EIBh+Yd1rgRpqtg3CdPNLjIb4bo0y4u9VYW5A9Z0KTkbqng97wYnfMfVaMgIxEcw6YtqWhZ7ZJA2ydqjAQrmiXhMYxFmmcRhcAlwsDi0du4rbruQ==

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


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

    # Installing the software
    install_exe_if_needed(
        bin_name,
        silentflags="/S /allusers",
        name="Notepad Next",
        min_version=control.get_software_version(),
    )

# -*- 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

fbfb96556a9c8931a75f8f576984d4e41ed1b34f9bf792980d98abeb80ad3260 : NotepadNext-v0.12-Installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3e5c08bcc2ab58ade02c5c9f982de46b7fac38218e5f1d213ebb2d2ee67d26ff : WAPT/control
20e9156528469f77f405dcca6ce0608c70eafb7857a8f9b14de38c186c67134a : WAPT/icon.png
1540f290621797185090a2113adffddf1f1bbf4608251042e78916d9948933e6 : luti.json
05039d59ca963fcd175d28d2c6b0d7cebee15ae1aeaf9e3924e5978757d2d32f : setup.py
9d7882598f1f715f326ac43fd2a15b4db58924ae6a8f4640d335c662dc7f8888 : update_package.py