dev commits.

This commit is contained in:
MasOnShi
2022-04-03 20:16:16 +08:00
parent d870e234c3
commit 18e2562146

View File

@@ -46,7 +46,7 @@ def extract_file(from_path, to_path):
def patch_file(_key, _iv):
patch_file_path = os.path.join(BASE_DIR, "../typora.py")
fd = open(patch_file_path, "a")
fd = open(patch_file_path, "a+")
content = fd.read()
content = content.replace("{AES_KEY}", f"b''.fromhex('{_key}')")
content = content.replace("{AES_IV}", f"b''.fromhex('{_iv}')")