tis-fastcopy

3.92-16
FastCopy computer software is a file and directory copier that runs under Microsoft Windows
2744 downloads
Download

  Description 

  • package : tis-fastcopy
  • version : 3.92-16
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Kenan KILICARSLAN
  • description : FastCopy computer software is a file and directory copier that runs under Microsoft Windows
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://fastcopy.jp/en/
  • installed_size : 1640096
  • impacted_process : FastCopy.exe
  • description_fr : Le logiciel FastCopy est un copieur de fichiers et de répertoires qui fonctionne sous Microsoft Windows
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Shirouzu Hiroaki
  • licence : GPLv3
  • signature_date : 2020-12-14T11:19:36.838402
  • Homepage : https://fastcopy.jp/en/

  Setup.py 

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

uninstallkey = []
bin_name = 'FastCopy_%s_installer.exe'
path = makepath(programfiles,'FastCopy')
silent_args = '/SILENT /DIR="%s"' %path
app_name = 'FastCopy'
label = "FastCopy"

def install():
    # Declare variables
    package_version = control.version.split('-')[0]
    # Installing binary
    print('installing FastCopy')
    install_exe_if_needed(bin_name % package_version,silentflags=silent_args,key='',min_version=package_version)


def uninstall():
    # Variables
    setup_path = makepath(programfiles,'FastCopy','setup.exe')

    print('closing FastCopy')
    killalltasks('FastCopy.exe')
    print('uninstalling FastCopy')
    remove_user_desktop_shortcut(label)

     # Uninstalling
    if isfile (setup_path):
        run(r'"%s" /silent /r' % setup_path)
        time.sleep(30)
        if isdir(path):
            remove_tree(path)
    else:
        print('file does not exist or the software is not installed')
    


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()
    bin_name_temp = 'FastCopy_installer.exe'
    version = '1.0'
    package_version = control.version.split('-')[0]

    url = 'https://www.vector.co.jp/download/file/winnt/util/fh731078.html'

    # Getting latest version from official website
    print('URL used is: %s' % url)

    # Finding version from file 
    for bs_search in bs_find_all(url,'a',proxies=proxies):
        if bs_search.text.startswith('FastCopy '):
            version_from_file = bs_search.text.split(' ')[1]
            break

    # Finding download url
    for bs_read in bs_find_all(url,'a',proxies=proxies):
        if bs_read['href'].endswith('_installer.exe'):
            dl_url = bs_read['href']
            break

    # download binary
    if isfile(bin_name % package_version):
        print("removing old binary !")
        remove_file(bin_name % package_version)
    
    print("downloading binary")
    wget(dl_url,bin_name_temp,proxies=proxies)


    # Checking version from file
    if version != version_from_file:
        os.rename(bin_name_temp,bin_name % version_from_file)
        version = version_from_file

    # 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)


def bs_find_all(url, element, attribute=None, value=None, headers=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a header for some websites. For example: headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'}
    """
    import requests
    page = requests.get(url, proxies=proxies, headers=headers, **kwargs).text
    try:
        import bs4 as BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page, features=features)
    except:
        import BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page)
    if value:
        return soup.findAll(element,{attribute:value})
    else:
        return soup.findAll(element)


def bs_find(url, element, attribute=None, value=None, headers=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a header for some websites. For example: headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'}
    """
    import requests
    page = requests.get(url, proxies=proxies, headers=headers, **kwargs).text
    try:
        import bs4 as BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page, features=features)
    except:
        import BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page)
    if value:
        return soup.find(element,{attribute:value})
    else:
        return soup.find(element)


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://fastcopy.jp/help/fastcopy_eng.htm#history



No changelog.txt.
									
  manifest.sha256