This commit is contained in:
relikd
2024-04-02 21:54:37 +02:00
commit 8f04d673d9
119 changed files with 20136 additions and 0 deletions

20
src_mac/extract_versions.py Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env python3
from argparse import ArgumentParser
import shutil
from cfg import CONFIG
from lib import downloadPath, updateVersionMap, versionToInt
if __name__ == '__main__':
cli = ArgumentParser()
cli.add_argument('ipa', nargs='+')
cli.add_argument('-m', '--move', action='store_true')
args = cli.parse_args()
max_os = versionToInt(CONFIG.max_os)
for fname in args.ipa:
info = updateVersionMap(fname)
if args.move and versionToInt(info.osVer) <= max_os:
download_path = downloadPath(info.appId, info.verId)
shutil.move(fname, download_path)