dev commits.

This commit is contained in:
MasOnShi
2022-04-03 21:47:37 +08:00
parent 1710c83f99
commit 5489c3b664
3 changed files with 4 additions and 4 deletions

View File

@@ -36,9 +36,7 @@ def get_version(to_path):
def download_file(from_link, to_path):
log.info(f"downloading from {from_link}")
subprocess.check_call(["wget", from_link, "-O", to_path])
log.info("ready extract package")
def extract_file(from_path, to_path):
@@ -65,7 +63,9 @@ def win_x64_run():
link = DOWNLOAD_LINK["win"]["x64"]
download_path = os.path.join(basedir, os.path.basename(link))
log.info(f"downloading from {link}")
download_file(link, download_path)
log.info("ready extract package")
extract_file(download_path, basedir)
log.info("preparation stage completed")