Skip to content

Commit d9e0aab

Browse files
committed
doc:notes for mac
1 parent c0a2b1c commit d9e0aab

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727

2828
该软件通过 `Python` 语言编写,已打包为可执行文件,未安装 `Python` 的用户可直接下载 [release](https://github.com/taojy123/KeymouseGo/releases) 版本 ,直接点击 `KeymouseGo` 运行
2929

30-
### 源码打包 exe 文件
30+
### 源码打包可执行文件
3131

3232
+ Windows
3333
```
3434
1. 安装 Python3
3535
2. pip install -r requirements-windows.txt
3636
3. pip install pyinstaller
37-
4. pyinstaller -F -w --add-data './assets;assets' KeymouseGo.py
37+
4. pyinstaller -F -w --add-data "./assets;assets" KeymouseGo.py
3838
```
3939

4040
+ Linux或Mac
4141
```
4242
1. 安装 Python3
4343
2. pip3 install -r requirements-universal.txt
4444
3. pip3 install pyinstaller
45-
4. pyinstaller -F -w --add-data './assets:assets' KeymouseGo.py
45+
4. pyinstaller -F -w --add-data "./assets:assets" KeymouseGo.py
4646
```
4747

4848
# 使用方法
@@ -104,6 +104,11 @@
104104

105105
部分系统环境中,可能出现无法录制完整的鼠标事件的情况,请以管理员身份/root身份运行此工具即可正常使用。
106106

107+
使用Mac的用户,需要确保程序在辅助功能白名单,如果使用打包的exec文件,则还需要确保终端也在辅助功能白名单。 如果app程序闪退,请尝试给予`~/.qt_material`目录下文件的写权限:
108+
```bash
109+
chmod -R 770 ~/.qt_material
110+
```
111+
107112
## 脚本语法说明
108113
> 演示屏幕分辨率为`1920 * 1080`
109114

readme/README.English.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ This program is written in `Python` and packed as executable file. You can downl
3838
1. Install Python 3
3939
2. pip install -r requirements-windows.txt
4040
3. pip install pyinstaller
41-
4. pyinstaller -F -w --add-data './assets;assets' KeymouseGo.py
41+
4. pyinstaller -F -w --add-data "./assets;assets" KeymouseGo.py
4242
```
4343

4444
+ Linux or Mac
4545
```
4646
1. Install Python 3
4747
2. pip3 install -r requirements-universal.txt
4848
3. pip3 install pyinstaller
49-
4. pyinstaller -F -w --add-data './assets:assets' KeymouseGo.py
49+
4. pyinstaller -F -w --add-data "./assets:assets" KeymouseGo.py
5050
```
5151

5252
# Usage
@@ -108,6 +108,11 @@ Run specific script with extension `MyExtension`
108108

109109
In some system environment, there may be circumstances that the mouse events cannot be fully recorded. To settle this, you can run this program as administrator/root.
110110

111+
For mac users, make sure that application must be white listed under Enable access for assistive devices. You may also need to whitelist terminal application if running from terminal. If the app crashes, you may try to give write permission for directory `~/.qt_material`.
112+
```bash
113+
chmod -R 770 ~/.qt_material
114+
```
115+
111116
## Grammar of scripts
112117
> Assume that the resolution of screen is `1920 * 1080`
113118

0 commit comments

Comments
 (0)