Skip to content

Commit 9f62315

Browse files
author
Geniucker
committed
feat: make users of mac able to open directly
1 parent e510481 commit 9f62315

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ iOSRealRun-cli
4848
5. 对于 Windows,你需要安装 iTunes,以确保驱动正常运行
4949
6. 在脚本目录中的 `config.py` 文件中设置 `v` 变量以设置速度(m/s),给个参考,3.3大概是5分到5分半的配速(我也没仔细看)
5050
6. 用数据线将电脑连接到 iPhone 或 iPad
51-
7. 用你喜欢的打开 Python 脚本的方式打开 `main.py`
51+
7. Mac 用户打开 `main.command`,Windows 用户打开 `main.py`
5252
8. 按照提示完成设备连接和开发者模式的开启
5353
9. 都好了大概就开跑了,默认无限循环
5454
10. 跑完之后请 **务必使用 Ctrl + C** 来停止,而非直接把窗口叉掉,否则不能自动恢复手机或pad的正常定位

main.command

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
cd $(dirname $BASH_SOURCE)
3+
python3 main.py

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@
3838
try:
3939
run.run(loc, v)
4040
finally:
41-
utils.resetLoc()
41+
utils.resetLoc()
42+
print("现在你可以关闭当前窗口或终端了")

0 commit comments

Comments
 (0)