Skip to content

Commit

Permalink
doc:notes for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Monomux committed Sep 11, 2022
1 parent c0a2b1c commit d9e0aab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@

该软件通过 `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
```
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
```

# 使用方法
Expand Down Expand Up @@ -104,6 +104,11 @@

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

使用Mac的用户,需要确保程序在辅助功能白名单,如果使用打包的exec文件,则还需要确保终端也在辅助功能白名单。 如果app程序闪退,请尝试给予`~/.qt_material`目录下文件的写权限:
```bash
chmod -R 770 ~/.qt_material
```

## 脚本语法说明
> 演示屏幕分辨率为`1920 * 1080`
Expand Down
9 changes: 7 additions & 2 deletions readme/README.English.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ 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
```
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
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit d9e0aab

Please sign in to comment.