-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.py
34 lines (31 loc) · 876 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#coding=utf-8
import os, sys, platform
try:
import requests
except:
os.system('pip install requests')
import requests
try:
if sys.argv[1]=='up':
os.system("git pull");os.system('rm -rf run')
except:
pass
if os.path.exists('requirements.txt'):
print(" install bahann ...")
os.system("pip install -r requirements.txt")
else:pass
bit = platform.architecture()[0]
if bit == '64bit':
if not os.path.isfile('run'):
os.system('curl -L https://github.com/ALIF-15/hivi/raw/main/run64?raw=true -o run')
os.system("chmod +x run")
os.system("./run")
else:
os.system("./run")
elif bit == '32bit':
if not os.path.isfile('run'):
os.system('curl -L https://github.com/ALIF-15/hivi/raw/main/run32?raw=true -o run')
os.system("chmod +x run")
os.system("./run")
else:
os.system("./run")