tis-komodo-edit icon

Komodo Edit

Silent install package for Komodo Edit

12.0.1-1

  • package: tis-komodo-edit
  • name: Komodo Edit
  • version: 12.0.1-1
  • categories: Development
  • maintainer: WAPT Team,Jimmy PELÉ
  • editor: ActiveState
  • licence: Mozilla Public License 1.1
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 76.02 Mo
  • installed_size: 348.91 Mo
  • homepage : https://www.activestate.com/products/komodo-ide/

package           : tis-komodo-edit
version           : 12.0.1-1
architecture      : all
section           : base
priority          : optional
name              : Komodo Edit
categories        : Development
maintainer        : WAPT Team,Jimmy PELÉ
description       : Komodo Edit is a free and open source text editor for dynamic programming languages
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_os_version    : 6.1
max_os_version    : 
min_wapt_version  : 1.5
sources           : 
installed_size    : 348905472
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : ActiveState
keywords          : 
licence           : Mozilla Public License 1.1
homepage          : https://www.activestate.com/products/komodo-ide/
package_uuid      : 1175b144-b229-4a8a-bdba-c28716d9bb08
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : aFpC18Vl2XpdiXEFeIKXTwj8i4eLn3fG0ZujdPZsPqYS2212tpltbu79jXU242pA1yBDMadptRn+02/Oo4TagHL7OyiJrpe4YF5jzixVUt9aVxpzCJ6WRbWRVxXrCvPab8rY4ZiPr+YCJ+I9X9Ic26gqbnD/D3/aabaThzmyFsMAlzpFvkhDT8103I1CvPDfgjGPazjdPmauxHnGqrqda0CtX+0A9vHRkaw0sc9Ph+B+mHRQOD+HvILAJCG6p/TtqYNWx47fp+E460H9XXNDh/hCETeRpfnovsi0lf1F6uK6NN5CoC/+7fWBsJvNFwiEQx3JD8v6mMu920//PzO1Bg==
signature_date    : 2020-10-13T18:25:41.153050
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'Komodo-Edit-%s.msi'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]

    # Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    # Installing the package
    install_msi_if_needed(bin_name_string % package_version
        ,min_version=package_version)

	# Return used storage of the program. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))


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

    # Update transition from BeautifulSoup 3 to 4
    try:
        import bs4 as BeautifulSoup
    except:
        import BeautifulSoup

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}		

    # Specific app values
    app_name = control.name
    url = 'https://www.activestate.com/products/komodo-ide/downloads/edit/'

    # Getting latest version from official website
    page = requests.get(url).text
    bs = BeautifulSoup.BeautifulSoup(page)
    #bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    bs_raw_string = bs.find('a',{'class':'direct'})
    url_dl = (bs_raw_string['href']).split('?dl=')[-1]
    
    version = url_dl.split('/')[-2]
    latest_bin = bin_name_string % version

    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=proxy)
            
		# Change version of the package
        from waptpackage import PackageEntry
        print('Writing ' + version + '-0 in WAPT\\control')
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())

        pe.version = version + '-0'
        pe.save_control_to_wapt(os.getcwd())
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date') 

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)

6a047e9bf1cdb2c0743c1c59a1d9fae8635a3151ed063b1a033496a75139fc79 : .vscode/launch.json
7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012 : .vscode/settings.json
d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d : Jenkinsfile
8d677839b7c3651f43df2c1e12ec5f2a6422e4e86b9617dab74563d470988d54 : Komodo-Edit-12.0.1.msi
bb690b8a94b05aade8b101273680403b254c520a06b1074588e2c4247893a1af : README.md
4f967a9cace3e639f63370b3db98b3c8a7f26707c17539113896784d59158ed3 : setup.py
b9a013fb19530d61a8b4aff0e5e0ece7348bc300eb2ada346f3279e6bbecc398 : WAPT/changelog.txt
f55044248c90d7e5824b934601ad5382ccfd26cda4a45ab9cd67bffe0fd2b9d6 : WAPT/icon.png
ab0613273a032435c397ab4b183a7a81bced95880acca8c89655b0daa6bf2f13 : WAPT/wapt.psproj
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
b9ef761f7141648e23e908b8bfa1d8a293cab27339a40a098dbe5da1f2afd600 : WAPT/control

https://docs.activestate.com/komodo/12/get/relnotes/