diff --git a/README.md b/README.md index 33e94a2..805e571 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,14 @@ 该软件通过 `Python` 语言编写,已打包为可执行文件,未安装 `Python` 的用户可直接下载 [release](https://github.com/taojy123/KeymouseGo/releases) 版本 ,直接点击 `KeymouseGo` 运行 -### 源码打包 exe 文件 +### 源码打包可执行文件 + Windows ``` 1. 安装 Python3 2. pip install -r requirements-windows.txt 3. pip install pyinstaller -4. pyinstaller -F -w --add-data './assets;assets' KeymouseGo.py +4. pyinstaller -F -w --add-data "./assets;assets" KeymouseGo.py ``` + Linux或Mac @@ -42,7 +42,7 @@ 1. 安装 Python3 2. pip3 install -r requirements-universal.txt 3. pip3 install pyinstaller -4. pyinstaller -F -w --add-data './assets:assets' KeymouseGo.py +4. pyinstaller -F -w --add-data "./assets:assets" KeymouseGo.py ``` # 使用方法 @@ -104,6 +104,11 @@ 部分系统环境中,可能出现无法录制完整的鼠标事件的情况,请以管理员身份/root身份运行此工具即可正常使用。 +使用Mac的用户,需要确保程序在辅助功能白名单,如果使用打包的exec文件,则还需要确保终端也在辅助功能白名单。 如果app程序闪退,请尝试给予`~/.qt_material`目录下文件的写权限: +```bash +chmod -R 770 ~/.qt_material +``` + ## 脚本语法说明 > 演示屏幕分辨率为`1920 * 1080` diff --git a/readme/README.English.md b/readme/README.English.md index 6a8f4e1..a4605ee 100644 --- a/readme/README.English.md +++ b/readme/README.English.md @@ -38,7 +38,7 @@ This program is written in `Python` and packed as executable file. You can downl 1. Install Python 3 2. pip install -r requirements-windows.txt 3. pip install pyinstaller -4. pyinstaller -F -w --add-data './assets;assets' KeymouseGo.py +4. pyinstaller -F -w --add-data "./assets;assets" KeymouseGo.py ``` + Linux or Mac @@ -46,7 +46,7 @@ This program is written in `Python` and packed as executable file. You can downl 1. Install Python 3 2. pip3 install -r requirements-universal.txt 3. pip3 install pyinstaller -4. pyinstaller -F -w --add-data './assets:assets' KeymouseGo.py +4. pyinstaller -F -w --add-data "./assets:assets" KeymouseGo.py ``` # Usage @@ -108,6 +108,11 @@ Run specific script with extension `MyExtension` 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. +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`. +```bash +chmod -R 770 ~/.qt_material +``` + ## Grammar of scripts > Assume that the resolution of screen is `1920 * 1080`