- package: tis-notepadnext
- name: NotepadNext
- version: 0.12-1
- categories: Media
- maintainer: WAPT Team,Tranquil IT,Jofrey Le Piquet
- target_os: linux
- impacted_process: NotepadNext
- architecture: x64
- signature_date:
- size: 33.16 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 : linux
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 : 0149ad8a-0c07-449a-9574-56898c31d2b2
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 : 2025-06-30T12:15:58.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 : vLT46yx81dFAvh7LlY/Q2xqmMn+Ug0uosw+Ls6alv4LBNqupIQlCFL4GBu5YYePZpS7ELnstOnEaDcgTbT9B7o4pzrEMQ8qX1JO/mtPQd1uPIO8606vpslxxPmc2zPW0/zr8gXzTX9yYdDdCm9q/zaUOCGh7s8FvQBifhHwiMkNvRS4HTkv7MBy0NvFXk+zDeCe/4YCaBNmzv67hm1Ku2rQ3o6WNo6MpssjTRl22uZ8g/Yy6XwBSgtPtarE9UuadDUfLjkYh0RR0qsUAZPyDbmhbP+Qp7doxHyslbE7m11LrObLzCIQ2Zq2ApwA1gZJMqG1T97ssbnbcyUeKc4hj/w==
# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2024
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *
from iniparse import ConfigParser
import os
def install():
install_dir = makepath('/','opt',control.package.split('-',1)[1])
appimage = glob.glob("*.AppImage")[0]
install_appimage(appimage,install_dir)
def uninstall():
install_dir = makepath('/','opt',control.package.split('-',1)[1])
uninstall_appimage(install_dir)
def install_appimage(appimage,install_dir,binaliasname=None):
run('chmod a+x ./' + appimage)
if isdir(install_dir):
uninstall_appimage(install_dir)
mkdirs(install_dir)
name_appimage = appimage.split('/')[-1]
filecopyto(appimage, makepath(install_dir, name_appimage))
run('"./%s" --appimage-extract' % appimage)
for desktop in glob.glob(makepath('squashfs-root','*.desktop')):
desktop_cp = ConfigParser()
desktop_cp.optionxform = str
desktop_file = open(desktop, encoding="utf-8")
desktop_cp.readfp(desktop_file)
bin_path = desktop_cp.get('Desktop Entry',"Exec")
newbin_path = install_dir + '/' + name_appimage
if ' %' in bin_path:
newbin_path = newbin_path + ' %' + bin_path.split(' %',1)[1]
icon_path = desktop_cp.get('Desktop Entry',"Icon")
srcicon = makepath('squashfs-root',icon_path +'.svg')
if not isfile(srcicon):
srcicon = makepath('squashfs-root',icon_path +'.png')
new_icon = install_dir + '/' + srcicon.split('/')[-1]
filecopyto(srcicon,new_icon)
desktop_cp.set('Desktop Entry',"Exec",newbin_path)
desktop_cp.set('Desktop Entry',"Icon",new_icon)
with open(desktop, 'w', encoding="utf-8") as f:
desktop_cp.write(f)
pathdesk = makepath(install_dir,desktop.split('/')[-1])
filecopyto(desktop, pathdesk)
run('chown root:root "%s" ' % pathdesk)
for f in glob.glob(makepath(install_dir,'*.desktop')):
run('ln -sf "%s" "/usr/share/applications/%s"' % (f,f.split('/')[-1]))
if binaliasname :
run(f"ln -sf {install_dir}/{name_appimage} /usr/bin/{binaliasname}")
remove_tree('squashfs-root')
def uninstall_appimage(install_dir):
if not glob.glob(makepath(install_dir,'*.desktop')):
error('.desktop not found')
for f in glob.glob(makepath(install_dir,'*.desktop')):
deskfile = f.split('/')[-1]
system_desktop = makepath("/","usr","share","applications",deskfile)
if isfile(system_desktop):
remove_file(system_desktop)
remove_tree(install_dir)
# -*- 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-x64": "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
1d5070c00086fec85ae9bc205867bcf1ce9c319b2b9d58eb4629e4f7295e7e30 : NotepadNext-v0.12-x86_64.AppImage
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
63e8d577e8f780b79c97b9b258a873810296bc40abc9d26b1272c0c7d35c3414 : WAPT/control
4a310b55f8d8270b07236df09dfa7c437017f80f2a19488e7ce566722e59c662 : WAPT/icon.png
afb763189334b08f0069ba605e2fc6ba844b868f358aba804f5df43d8cf713ad : luti.json
cdd138039f331f99f9892c0d1761fa50883579eaccbfe09ea0d093489eee4c2d : setup.py
b2a987e304efc67686a197da197989878f4bb418584d5f582583ba7c0f2ee831 : update_package.py