tis-cmder

1.3.19-35
Cmder is an ergonomic and intuitive console emulator designed to enhance your Windows command prompt experience. Based on ConEmu
2568 downloads
Download
View on luti logo
tis-cmder icon

  Description 

  • package : tis-cmder
  • version : 1.3.19-35
  • architecture : all
  • categories : Utilities
  • maintainer : Tranquil IT,WAPT Team,Kenan KILICARSLAN,Simon FONTENEAU
  • description : Cmder is an ergonomic and intuitive console emulator designed to enhance your Windows command prompt experience. Based on ConEmu
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://github.com/cmderdev/cmder/releases/
  • installed_size :
  • impacted_process : cmder
  • description_fr : Cmder est un émulateur de console ergonomique et intuitif destiné à améliorer votre expérience de l'invite de commande Windows. Basé sur ConEmu
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Samuel Vasko
  • licence : MIT
  • signature_date : 2022-01-25T04:35:28.223675
  • Homepage : https://cmder.net/

  Setup.py 

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

uninstallkey = []

path = makepath(programfiles32,'cmder')
iconemu = makepath(path,'icons','cmder.ico')
bin_end ='.zip'
bin_name = 'cmder.zip'
bin_dir = 'cmder'

def install():
    unzip(bin_name,bin_dir)
    print('installing Cmder')
    versionsoft = control['version'].split('-',1)[0]
    maintainer = control['signer']
    namepackage= control['package']

    if isdir(path):
        remove_tree(path)
    copytree2('cmder',path)
    create_programs_menu_shortcut('Cmder', target=makepath(path,'vendor','conemu-maximus5','ConEmu.exe'), arguments=r'/Icon "' + iconemu + '" /Title Cmder /LoadCfgFile "%appdata%\cmder\ConEmu.xml"', wDir=path, icon=iconemu)
    run('"%s" /REGISTER ALL' % makepath(path,'Cmder.exe'))
    register_uninstall('cmder','wapt-get remove ' + namepackage,win64app=False,
        quiet_uninstall_string='',
        install_location = path , display_name='Cmder',display_version=versionsoft,publisher=maintainer)

def uninstall():
    run_notfatal('"%s" /UNREGISTER ALL' % makepath(path,'Cmder.exe'))
    if isdir(path):
        remove_tree(path)
    remove_programs_menu_shortcut('Cmder')
    unregister_uninstall('cmder',win64app=False)

def session_setup():
    if not isfile(makepath(application_data(),'cmder')):
        mkdirs(makepath(application_data(),'cmder'))
    filecopyto(makepath(path,'config','ConEmu.xml'),makepath(application_data(),'cmder','ConEmu.xml'))

def update_package():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    # Specific app values
    app_name = control.name
    url_api = 'https://api.github.com/repos/cmderdev/cmder/releases/latest'

    # Getting latest informations from Github API
    json_load = json.loads(wgets(url_api,proxies=proxies))

    for download in json_load['assets']:
        if download['browser_download_url'].endswith(bin_end):
            url_dl = download['browser_download_url']
            break

    version = (json_load['tag_name']).replace('v','')
    latest_bin = bin_name

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxies)

		# Change version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')
    
    # Unzip binary
    if not isdir (bin_dir):
        print('Extracting binary')
        mkdirs(bin_dir)
    else:
        print('binary already extract')


def get_proxies():
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()


def get_proxies_from_wapt_console():
    proxies = {}
    if platform.system() == 'Windows':
        waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
    else:
        waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
    if isfile(waptconsole_ini_path):
        proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
        if proxy_wapt:
            proxies = {'http': proxy_wapt, 'https': proxy_wapt}
    return proxies

										

  Changelog 



Changelog software url : https://github.com/cmderdev/cmder/releases



No changelog.txt.
									
  manifest.sha256