dev commits.

This commit is contained in:
MasOnShi
2022-04-03 20:05:35 +08:00
parent d5f9fa4026
commit 1c879400fd
2 changed files with 4 additions and 4 deletions

View File

@@ -7,6 +7,6 @@ if __name__ == '__main__':
download_path = os.path.join(BASE_DIR, os.path.basename(DOWNLOAD_URL))
download_file(DOWNLOAD_URL, download_path)
extract_file(download_path)
extract_file(download_path, BASE_DIR)
version = get_version(BASE_DIR)

View File

@@ -40,8 +40,8 @@ def download_file(from_link, to_path):
log.info("ready extract package")
def extract_file(_path):
subprocess.check_call(["innoextract", _path])
def extract_file(from_path, to_path):
subprocess.check_call(["innoextract", from_path, "-d", to_path])
log.info("preparation stage completed")
def patch_file(_key, _iv):
@@ -61,7 +61,7 @@ def win_x64_run():
download_path = os.path.join(basedir, os.path.basename(link))
download_file(link, download_path)
extract_file(download_path)
extract_file(download_path, basedir)
main_node_path = os.path.join(basedir, "app/resources/app.asar.unpacked/main.node")
log.info("auto analysis start")