Exemple #1
0
def download_resources():
    url = WxConfig.getAppDownloadUrl()
    download_address = FilePathUtil.get_full_dir('dist', 'window_main_resources.zip')
    if os.path.exists(download_address):
        os.remove(download_address)
    downloadFile(download_address, url)
    return FilePathUtil.get_full_dir('dist')
Exemple #2
0
def download(signals: pyqtSignal = None):
    url = WxConfig.getAppDownloadUrl()
    localpath = WxConfig.getAppexeReplaceDir()
    if localpath is None:
        localpath = FilePathUtil.get_full_dir('dist', 'window_main.exe')
    if os.path.exists(localpath):
        os.remove(localpath)
    downloadFile(localpath, url, signals)
    return FilePathUtil.get_full_dir('dist')