mirror of
https://github.com/Mas0nShi/typoraCracker.git
synced 2023-07-10 13:41:20 +08:00
dev commits.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user