Skip to content

Commit

Permalink
Update build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Apr 26, 2024
1 parent b52a535 commit 98c4a38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import argparse
import os
import shutil
import shutil,json
import subprocess
import requests

py37Path32 = os.path.join(
os.environ["LOCALAPPDATA"], "Programs\\Python\\Python37-32\\python.exe"
)
Expand Down Expand Up @@ -173,7 +173,7 @@ def downloadOCRModel(locale):


def buildLunaHook():
for ass in requests.get('https://api.github.com/repos/HIllya51/LunaHook/releases/latest').json()['assets']:
for ass in json.loads(subprocess.run('curl -s https://api.github.com/repos/HIllya51/LunaHook/releases/latest',stdout=subprocess.PIPE).stdout.decode('utf8'))['assets']:
if ass['name']=='Release_English.zip':
os.chdir(rootDir + "\\temp")
subprocess.run(f"curl -LO {ass['browser_download_url']}")
Expand Down

0 comments on commit 98c4a38

Please sign in to comment.