tis-ultradefrag

7.1.4-6
UltraDefrag is a disk defragmentation utility for Microsoft Windows.
3754 downloads
Download
default icon

  Description 

  • package : tis-ultradefrag
  • version : 7.1.4-6
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Kenan KILICARSLAN
  • description : UltraDefrag is a disk defragmentation utility for Microsoft Windows.
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://sourceforge.net/projects/ultradefrag/
  • installed_size : 7345864
  • impacted_process : ultradefrag.exe
  • description_fr : UltraDefrag est un utilitaire de défragmentation de disque pour Microsoft Windows.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Green Gate Systems, LLC
  • licence : GPL
  • signature_date : 2020-12-01T15:46:30.518398
  • Homepage : http://ultradefrag.net/

  Setup.py 

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

uninstallkey = []
bin_name_temp = 'ultradefrag-%s.bin.amd64.exe'
bin_end = '.exe'
app_name = 'Ultra Defragmenter'
path = makepath(programfiles,'UltraDefrag','uninstall.exe')


def install():
    # Specific app values
    package_version = control.version.split('-')[0].split('.')[:3]
    package_version = '.'.join(package_version)
    bin_name = bin_name_temp % package_version
    print('installing ultradefrag')
    install_exe_if_needed(bin_name,'/S',key='UltraDefrag',min_version=package_version)


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

    # Initializing variables

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'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
    proxies = proxy
    git_repo = 'ultradefrag'
    url_api = 'https://sourceforge.net/projects/%s/best_release.json' % git_repo

    # Getting latest version from official website
    print('API used is: ' + url_api)
    json_load = json.loads(wgets(url_api,proxies=proxies))
    version = json_load['release']['filename'].split('/')[-2]
    latest_bin = bin_name_temp % version
    url_dl = 'https://sourceforge.net/projects/%s/files/%s/download' % (git_repo,latest_bin)

    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=proxy)
    
    # Incrementing 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)

										

  Changelog 



No changelog.txt.
									
  manifest.sha256