dev commits.

This commit is contained in:
MasOnShi
2022-04-03 20:09:41 +08:00
parent 1c879400fd
commit 25cb04e00f
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
from utils import get_version, download_file, extract_file
from utils import get_version, download_file, extract_file, log
import os
if __name__ == '__main__':
@@ -9,4 +9,5 @@ if __name__ == '__main__':
download_file(DOWNLOAD_URL, download_path)
extract_file(download_path, BASE_DIR)
version = get_version(BASE_DIR)
os.system(f"export TYPORA_VERSION={version}")

View File

@@ -42,7 +42,7 @@ def download_file(from_link, to_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):
patch_file_path = os.path.join(BASE_DIR, "../typora.py")
@@ -62,7 +62,7 @@ def win_x64_run():
download_file(link, download_path)
extract_file(download_path, basedir)
log.info("preparation stage completed")
main_node_path = os.path.join(basedir, "app/resources/app.asar.unpacked/main.node")
log.info("auto analysis start")
key, iv = analysis.get_aes_key_and_iv(main_node_path)