-
Notifications
You must be signed in to change notification settings - Fork 292
/
init.py
21 lines (14 loc) · 915 Bytes
/
init.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
import spur
ip_addr = "192.168.0.19"
#os.system("cp -r /Users/jason/Library/Developer/Xcode/DerivedData/zxtouch-hbsjteiysuzetgbhemilfxatkcdd/Build/Products/Debug-iphoneos/zxtouch.app /Users/jason/Code/ioscontrol/zxtouch-xcode-install/Applications/")
os.system("codesign --entitlements /Users/jason/Code/ioscontrol/zxtouch-xcode-install/entitlements.plist -f -s \"Apple Development: jiz176@pitt.edu (L8FGNSF6R4)\" /Users/jason/Code/ioscontrol/layout/Applications/zxtouch.app")
'''
os.system("dpkg-deb -Zgzip -b /Users/jason/Code/ioscontrol/zxtouch-xcode-install/")
os.system("scp /Users/jason/Code/ioscontrol/zxtouch-xcode-install.deb root@" + ip_addr + ":/zxtouch.deb")
# install on ios devices
print("start installing")
shell = spur.SshShell(hostname=ip_addr, username="root", password="xuan32546")
result = shell.run(["dpkg", "-i", "/zxtouch.deb"])
result = shell.run(["killall", "zxtouch"])
'''