mirror of
https://github.com/Mas0nShi/typoraCracker.git
synced 2023-07-10 13:41:20 +08:00
13 lines
433 B
Python
13 lines
433 B
Python
from utils import get_version, download_file, extract_file
|
|
import os
|
|
|
|
if __name__ == '__main__':
|
|
DOWNLOAD_URL = "https://typora.io/windows/typora-setup-x64.exe"
|
|
BASE_DIR = os.path.join(os.path.dirname(__file__), "win/x64")
|
|
|
|
download_path = os.path.join(BASE_DIR, os.path.basename(DOWNLOAD_URL))
|
|
download_file(DOWNLOAD_URL, download_path)
|
|
extract_file(download_path, BASE_DIR)
|
|
version = get_version(BASE_DIR)
|
|
|