tis-atom

1.60.0-2
Atom is a free and open-source text and source code editor with support for plug-ins written in Node.js, and embedded Git Control
5902 downloads
Download
See build result See VirusTotal scan
tis-atom icon
  • package : tis-atom
  • name : Atom
  • version : 1.60.0-2
  • categories : Development
  • maintainer : WAPT Team,Jimmy PELÉ,Pierre Cosson
  • editor : atom,text,source,code,editor,node.js,node,js,git,control
  • licence : MIT
  • locale : all
  • target_os : windows
  • impacted_process : atom.exe,Squirrel.exe
  • architecture : x86
  • signature_date : 2022-08-22 11:03
  • size : 193.84 Mo
  • installed_size : 663.07 Mo
  • homepage : https://atom.io/
package           : tis-atom
version           : 1.60.0-2
architecture      : x86
section           : base
priority          : optional
name              : Atom
categories        : Development
maintainer        : WAPT Team,Jimmy PELÉ,Pierre Cosson
description       : Atom is a free and open-source text and source code editor with support for plug-ins written in Node.js, and embedded Git Control
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 1.5
sources           : https://github.com/atom/atom/releases/latest
installed_size    : 663068672
impacted_process  : atom.exe,Squirrel.exe
description_fr    : Atom est un éditeur de texte libre. Il supporte des plug-ins écrits en Node.js et implémente Git Control. Il est utilisé en tant qu’environnement de développement (EDI)
description_pl    : Atom to darmowy i open-source'owy edytor tekstu i kodu źródłowego z obsługą wtyczek napisanych w Node.js, oraz wbudowaną kontrolą Git
description_de    : Atom ist ein freier und quelloffener Text- und Quellcode-Editor mit Unterstützung für in Node.js geschriebene Plug-ins und eingebetteter Git-Kontrolle
description_es    : Atom es un editor de texto y código fuente gratuito y de código abierto con soporte para plug-ins escritos en Node.js, y control Git incrustado
description_pt    : Atom é um editor de texto e código fonte livre e de código aberto com suporte para plug-ins escritos em Node.js, e Git Control incorporado
description_it    : Atom è un editor di testo e codice sorgente gratuito e open-source con supporto per plug-in scritti in Node.js e controllo Git incorporato
description_nl    : Atom is een gratis en open-source tekst- en broncode-editor met ondersteuning voor plug-ins geschreven in Node.js, en ingebedde Git Controle
description_ru    : Atom - это бесплатный редактор текста и исходного кода с открытым исходным кодом, поддерживающий плагины, написанные на Node.js, и встроенный Git Control
audit_schedule    : 
editor            : atom,text,source,code,editor,node.js,node,js,git,control
keywords          : 
licence           : MIT
homepage          : https://atom.io/
package_uuid      : 864130d6-bf8d-4e08-95a4-a2a6a44fdce0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : b31d62ffdb710826d1537bb9e0b2ee62c38b8b6a11089b0871558e916f92e176
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : jiGxhUt7qFoauxfcJGgD9ctVrk5btnePrwzqAEE7hzasJ0mopKvVFC8Hs0k8dW2A6tz4zT2XcLUNIqgWeb80lI2zt4ZjZCza/QSMa0z0RH1ioHbtaPQ9Q1KqsYXszX9HSCWXU9rsv6J3CF9ZSGOBu2IdYuHo2uUbCKA6jiP4A+u/8obtqpmhEbh7UjU+k2dGmrVzkKA5LXpC0jzQd8zgzAwlUBXcEMe3QW3hLqQa9QBVF1EB3D2CjNL8OUdut8WIy/PNwzylYpZjUrFIu2CfDq1TVY4eqC4HqpFin5C7q/NIogwlqagW0gGpwLlxAXQZnB0mHhlkQR97WguRlKvTUA==
signature_date    : 2022-08-22T11:03:22.899552
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 *

# Declaring specific app values (TO CHANGE)
bin_name_zip_string = "atom-%s-windows.zip"
app_name = "Atom"
app_name_dir = "Atom"
app_dir = makepath(programfiles32, app_name_dir)
app_exe = "atom.exe"
app_path = makepath(app_dir, app_exe)


def install():
    # Specific app values
    package_version = control.get_software_version()

    # Installing the package
    killalltasks(app_exe)
    if isdir(app_dir):
        remove_tree(app_dir)
    unzip((bin_name_zip_string % package_version), target=makepath(programfiles32), filenames=r"%s\*" % app_name_dir)
    create_programs_menu_shortcut(app_name, app_path)


def uninstall():
    import time

    # Uninstalling the package
    killalltasks(app_exe)
    time.sleep(5)
    remove_tree(app_dir)
    remove_programs_menu_shortcut(app_name)


def session_setup():
    print("Uninstalling Atom on user environnement if detected")

    app_user_env = makepath(user_local_appdata, "atom")

    killalltasks(app_exe)
    if isdir(app_user_env):
        remove_tree(app_user_env)
# -*- coding: utf-8 -*-
from setuphelpers import *
import json


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/atom/atom/releases/latest"
    if control.architecture == "x64":
        arch_contains = "x64-windows.zip"
    else:
        arch_contains = "atom-windows.zip"
    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if arch_contains in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = download["name"]
            break
    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_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)
    os.rename(latest_bin, "atom-%s-windows.zip" % version)
    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        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()
    # Deleting outdated binaries
    remove_outdated_binaries(version)
    # Validating update-package-sources
    return package_updated
6cdbb4225dcf33e21c82acbae96e758bfa70ce6e641ce0130b2b534d23316057 : setup.py
6b7fd7f3db7af1f930f7d5235f4d54a847e6f3ee093673c5a2df86db2a3c0fb3 : update_package.py
dcf1b1b6285db49f2cfa69aca2696212b1c09d39d6fb47635f4a03c61b8a348e : atom-1.60.0-windows.zip
b31d62ffdb710826d1537bb9e0b2ee62c38b8b6a11089b0871558e916f92e176 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
3a7613bdead17d47ef3016069d5d83649640abc6b6f7bd5ae80b20d135cd0acc : luti.json
76a759c84b630908598da9b6c7b14d16521dd36c853a8b9c510df8ad3aa2765a : WAPT/control