tis-axcrypt

2.1.1606.0-13
AxCrypt is a software that allows to use strong encryption methods with Microsoft Windows. Integrated in Windows Explorer, it allows to compress, erase, encrypt and edit very simply.
2865 downloads
Download

  Description 

  • package : tis-axcrypt
  • version : 2.1.1606.0-13
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Kenan KILICARSLAN,Jimmy PELÉ
  • description : AxCrypt is a software that allows to use strong encryption methods with Microsoft Windows. Integrated in Windows Explorer, it allows to compress, erase, encrypt and edit very simply.
  • locale : all
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.7
  • sources : https://www.axcrypt.net/download
  • installed_size :
  • impacted_process : AxCrypt.exe
  • description_fr : AxCrypt est un logiciel qui permet d'utiliser les méthodes de chiffrement fortes avec Microsoft Windows. Intégré à Windows Explorer, il permet de compresser, d'effacer, de chiffrer et d'éditer très simplement.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Svante Seleborg
  • licence : GPLv2
  • signature_date : 2020-11-20T14:13:12.758916
  • Homepage : https://www.axcrypt.net/

  Setup.py 

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

uninstallkey = []

# Defining variables
bin_name_to_substitute='AxCrypt-%s-Setup.exe'
silent_args = '/S'
app_uninstallkey = '' # because it may change every versions


def install():
    # Initializing variables
    package_version = control.version.split('-',1)[0]
    bin_name = bin_name_to_substitute % package_version

    # Installing the package
    print('Installing: %s' % bin_name)
    install_exe_if_needed(bin_name,
        silentflags=silent_args,
        key=app_uninstallkey,
        min_version=package_version)


def uninstall():
    #set variables
    package_version = control.version.split('-')[0]
    processes_to_kill = control.impacted_process.split(',')
    app_name = control.name

    print('closing %s' % app_name)
    killalltasks(processes_to_kill)
    print('uninstalling %s' % app_name)
    # Uninstalling
    for uninstall in installed_softwares(name=app_name):
        print('Uninstalling: %s' % uninstall['name'])
        run(uninstall_cmd(uninstall['key']))


def update_package():
    print('Download/Update 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
    dl_url = "https://account.axcrypt.net/download/axcrypt-2-setup.exe"
    bin_temp = 'axcrypt-2-setup.exe'
    latest_bin = bin_temp
    version = '0.0'

    print("Download url is: %s" % dl_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: %s' % latest_bin)
        wget(dl_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if version != version_from_file:
            os.rename(latest_bin,bin_name_to_substitute % version_from_file)
            version = version_from_file

        # Changing version of the package
        control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
        control.save_control_to_wapt()
        print('Changing package version to: %s in WAPT\\control' % control.version)

    # Deleting outdated binaries
    remove_outdated_binaries(version)




def get_proxies():
    import platform
    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

def get_version_from_binary(filename):
    if filename.endswith('.msi'):
        return get_msi_properties(filename)['ProductVersion']
    else:
        return get_file_properties(filename)['ProductVersion']

def remove_outdated_binaries(version, list_extensions=['exe','msi','deb','rpm','dmg','pkg'], list_filename_contain=None):
    if type(list_extensions) != list:
        list_extensions = [list_extensions]
    if list_filename_contain:
        if type(list_filename_contain) != list:
            list_filename_contain = [list_filename_contain]
    list_extensions = ['.' + ext for ext in list_extensions if ext[0] != '.']
    for file_ext in list_extensions:
        for bin_in_dir in glob.glob('*%s' % file_ext):
            if not version in bin_in_dir:
                remove_file(bin_in_dir)
            if list_filename_contain:
                for filename_contain in list_filename_contain:
                    if not filename_contain in bin_in_dir:
                        remove_file(bin_in_dir)


										

  Changelog 


Changelog software url : https://www.axcrypt.net/information/release-notes/

No changelog
  manifest.sha256 
[["AxCrypt-2.1.1606.0-Setup.exe","be9282846bd0450606f417c3e074fb8d7e3ab7759dc16d8a641dd0aab91351c8"],["setup.py","d26bcb527f92f00249bf35a7c8616b5b84284230ee87b2d6646fd026763ca89d"],["WAPT/icon.png","2b9524010626e11ff98149158d738fb0311ac7b98683df681810a8a545aac9c8"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","10678f09da91bddc85bf23878dfadda3af4531c86f4ac22b8510b3296c776c44"]]