Skip to content

Commit

Permalink
doc: update window asar doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Reamd7 committed Sep 19, 2023
1 parent ee3f3dd commit fbf7ba9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ Notion 已经有了中文语料,让用户能够提前使用中文语料
**手动注入:**

### windows
1. (自**2.0.4**版本后,任意语言都等价于中文了)

下载 release 文件夹 window 目录,更新 env.toml 中 folder 字段为自己 notion 安装目录,运行 update_asar.exe。

<!-- 1. (自**2.0.4**版本后,任意语言都等价于中文了)
2. notion 安装目录:`C:\Users\用户名\AppData\Local\Programs\Notion\`
3. 打开`C:\Users\用户名\AppData\Local\Programs\Notion\resources\app\renderer`文件夹
4. 下载 `notion-zh_CN.js` 到上述文件夹(renderer)
Expand All @@ -70,7 +73,7 @@ Notion 已经有了中文语料,让用户能够提前使用中文语料
```powershell
Invoke-WebRequest -Uri "https://github.com/Reamd7/notion-zh_CN/releases/latest/download/notion-zh_CN.js" -OutFile "$HOME\AppData\Local\Programs\Notion\resources\app\renderer\notion-zh_CN.js"
Add-Content "$HOME\AppData\Local\Programs\Notion\resources\app\renderer\preload.js" 'require("./notion-zh_CN")'
```
``` -->

### Mac

Expand Down
2 changes: 1 addition & 1 deletion release/windows/env.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = "2.4.20"
folder = ""
folder = "C:/Users/用户名/AppData/Local/Programs/Notion"
remote_url="https://greasyfork.org/scripts/430116-notion-zh-cn-notion%E7%9A%84%E6%B1%89%E5%8C%96%E8%84%9A%E6%9C%AC/code/Notion-zh_CN%20notion%E7%9A%84%E6%B1%89%E5%8C%96%E8%84%9A%E6%9C%AC.user.js"

0 comments on commit fbf7ba9

Please sign in to comment.