- package: tis-cudatext
- name: CudaText
- version: 1.178.0.0-4
- categories: Development
- maintainer: WAPT Team, Tranquil IT, Jimmy PELÉ
- editor: Alexey Torgashin (alexey_t), Andrey Kvichanskiy (kvichans)
- licence: MPL 2.0
- locale: all
- target_os: windows
- impacted_process: cudatext
- architecture: x64
- signature_date:
- size: 15.50 Mo
- installed_size: 28.18 Mo
- homepage : http://uvviewsoft.com/cudatext/
package : tis-cudatext
version : 1.178.0.0-4
architecture : x64
section : base
priority : optional
name : CudaText
categories : Development
maintainer : WAPT Team, Tranquil IT, Jimmy PELÉ
description : CudaText is a free open source cross-platform native GUI text and source code editor
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources : https://www.fosshub.com/CudaText.html
installed_size : 28180480
impacted_process : cudatext
description_fr : CudaText est un éditeur de texte et de code source libre et ouvert, à interface graphique native et multiplateforme
description_pl : CudaText jest darmowym, otwartym, międzyplatformowym, natywnym edytorem tekstu i kodu źródłowego GUI
description_de : CudaText ist ein freier, plattformübergreifender, nativer GUI-Text- und Quellcode-Editor
description_es : CudaText es un editor de texto y código fuente nativo de código abierto y multiplataforma
description_pt : CudaText é um editor de código fonte e texto GUI nativo de código fonte de código aberto gratuito
description_it : CudaText è un editor di testo e di codice sorgente open source multipiattaforma con interfaccia grafica nativa
description_nl : CudaText is een gratis open source cross-platform native GUI tekst en broncode editor
description_ru : CudaText - это бесплатный кроссплатформенный кроссплатформенный редактор текста и исходного кода с графическим интерфейсом с открытым исходным кодом
audit_schedule :
editor : Alexey Torgashin (alexey_t), Andrey Kvichanskiy (kvichans)
keywords :
licence : MPL 2.0
homepage : http://uvviewsoft.com/cudatext/
package_uuid : 1073a26b-5d67-4ad6-bdec-32a1205beb32
valid_from :
valid_until :
forced_install_on :
changelog : http://uvviewsoft.com/cudatext/history.txt
min_os_version : 5.1
max_os_version :
icon_sha256sum : ea2383e906352851706a5f4f96ee2947ce3a3aa9a9811bb519da7957af26dd8c
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : nBC49dmvA82Bzr/m2j4YTcbVVd+GR4JN+VHVHHrDE+IvGbw1s4FgSYedt4fbzZUxq19rrcanAb9DRETvlN30FE/EzQ1atft2wNBjhgOFXvl8fbfbVM7zFbItqnqkUXdOpAbijxYyXO/1/KFXV9K2dq7YkdvjsRprGwd9qq7bUNXcUtGFA18i33d1ru38ULesXeL+yPtWpqAJ6vsLuMRMT8gSzJTqGt2t+SjBYMF6BzO/8KLVk/ovOmzUd7j/c1NeegmhCabqkY/ox5xErXhXlfvino/4NK28l14yVasaHXPJ+POxzKqGaGcXmV5pwFOLSCu9UwgpOgs/J2Lq3BTNeg==
signature_date : 2022-12-01T16:00:07.698992
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
# -*- coding: utf-8 -*-
from setuphelpers import *
# Defining variables
app_name = "CudaText"
app_dir = makepath(programfiles, app_name)
def install():
# Initializing variables
package_version = control.version.split("-", 1)[0]
bin_name = "cudatext-win-x64-%s.zip" % package_version
processes_to_kill = control.impacted_process.split(",")
# Installing the package
print("Installing: %s" % bin_name)
killalltasks(processes_to_kill)
if isdir(app_dir):
remove_tree(app_dir)
unzip(bin_name, target=app_dir)
create_programs_menu_shortcut(app_name, makepath(app_dir, "cudatext.exe"))
def uninstall():
# Uninstalling the package
remove_tree(app_dir)
remove_programs_menu_shortcut(app_name)
# -*- coding: utf-8 -*-
from setuphelpers import *
def update_package():
print("Downloading/Updating package content from upstream binary sources")
# Initializing variables
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
url = control.sources
# Getting latest version from official website
print("URL used is: " + url)
url_dl = get_download_url_from_fosshub(url, file_type="win x64", proxies=proxies)
version = bs_find(url, "dd", "itemprop", "softwareVersion", proxies=proxies).text
latest_bin = "cudatext-win-x64-%s.zip" % version
print("Latest %s version is: %s" % (app_name, version))
print("Download url is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Changing version of the package
control.version = "%s-%s" % (version, int(control.version.split("-")[-1]) + 1)
control.save_control_to_wapt()
print("Changing version to: %s in WAPT\\control" % control.version)
# Deleting outdated binaries
remove_outdated_binaries(version)
def get_download_url_from_fosshub(url, file_type="64-bit Windows Installer", proxies=None):
import json
import requests
url_api_fosshub = "https://university.fosshub.com/projects.json"
for script in bs_find_all(url, "script", proxies=proxies):
if (len(script.contents) >= 1) and ("var settings" in script.contents[0]):
var_settings = script.contents[0].replace("\n var settings =", "").replace("\n", "")
break
for readapifosshub in json.loads(wgets(url_api_fosshub, proxies=proxies))["projects"]:
if readapifosshub["url"].endswith(url.split("//")[-1]):
for filename in readapifosshub["files"]:
if filename["type"] == file_type:
file_name = filename["name"]
settings = json.loads(var_settings)
apiUrl = "https://api." + settings["domain"]
downloadUrl = apiUrl + "/download/"
def forming_fosshub_url(a, b, c, d, e):
params = {"projectId": a, "releaseId": b, "projectUri": c, "fileName": d, "source": e}
r = requests.post(downloadUrl, data=params, proxies=proxies)
return r
pool = settings["pool"]
f = pool["f"]
for c in f:
r = forming_fosshub_url(pool["p"], c["r"], pool["u"], file_name, pool["c"])
r = forming_fosshub_url(pool["p"], c["r"], pool["u"], file_name, pool["c"])
rj = r.json()
return rj["data"]["url"]
e98dc1a52723f27158810e26441f4e9d7d56f606da144dfce98b93394c86217e : setup.py
30a7581a75817a90a5390c12708986c2719d3fc7d7b452a1d6bbad14e055f95e : cudatext-win-x64-1.178.0.0.zip
36c7b15c257c4dfc1ea718f9c958861b2770c7a7ebd4544b681c7bddea3f74be : update_package.py
ea2383e906352851706a5f4f96ee2947ce3a3aa9a9811bb519da7957af26dd8c : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
76e16fc82c1e3f4a122d8c8c634e09a6954a85d1ea0cff106213d678d493a886 : luti.json
6a45c0dafb063aa4bb8b251710ddb5421c59d382719f6127eb17a16f4bb32c94 : WAPT/control