Skip to content

Commit

Permalink
new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Jul 29, 2024
1 parent aa644de commit b2a124b
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 4 deletions.
Binary file added docs/asset/img/getting-started/nc051.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/asset/img/getting-started/nc052.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/asset/img/getting-started/nc053.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/asset/img/getting-started/nc054.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/asset/img/getting-started/nc055.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/asset/img/getting-started/nc056.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/asset/img/getting-started/nc057.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 32 additions & 3 deletions docs/zh-CN/guide/BootWay03.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@

## 打开QQ下对应目录
![way0301](../../asset/img/getting-started/install.way03.01.png)
(Linux )

## 解压
将napcat放置到如上图的位置 确保 ./napcat/napcat.mjs 存在
将napcat放置到如上图的位置 确保 ./napcat/napcat.mjs 存在!!!!
把NC放到QQ如上图的位置

## 写入启动代码
将上图中的index.js内容删除后添加如下代码 添加后保存
### Windows
将上图中的QQ目录的index.js内容删除后添加如下代码 添加后保存
```js
// --------------------
// 2024.7.3 9.9.12 BootWay.03 其余方法暂不公开(此方案为临时方案 Win平台已验证)
Expand All @@ -40,7 +42,30 @@ if (hasNapcatParam) {
require('./launcher.node').load('external_index', module);
}
```
### Linux
Linux同样也需要修改index.js如下
```js
// --------------------
// 2024.7.3 9.9.12 BootWay.03 其余方法暂不公开(此方案为临时方案 Win平台已验证)
// 缺陷 (已知)
// 1.与非入侵式不同 现在破坏本体代码
// 2.重启代码与正常启动代码失效
// 3.Win需要补丁
// 4.更新后丢失内容 需要重写此文件
// 5.安装难度上升与周围基础设施失效
// --------------------

const path = require('path');
const CurrentPath = path.dirname(__filename)
const hasNapcatParam = process.argv.includes('--no-sandbox');
if (hasNapcatParam) {
(async () => {
await import("file://" + path.join(CurrentPath, './napcat/napcat.mjs'));
})();
} else {
require('./launcher.node').load('external_index', module);
}
```
## 启动Win NapCat
打开NTQQ目录
![way0302](../../asset/img/getting-started/install.way03.02.png)
Expand All @@ -62,3 +87,7 @@ napcat-9912 为新的启动脚本,复制到任意位置双击打开即可快
./QQ.exe --enable-logging
```
即可启动
### Linux
```bash
xvfb-run qq --no-sanbox
```
31 changes: 31 additions & 0 deletions docs/zh-CN/guide/BootWay05.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 安装
## 首次启动?
1.首先找到你下载的NC目录内的这个文件
![alt text](../../asset/img/getting-started/nc051.png)
2.然后点击复制 完成后不要关闭文件管理窗口
![alt text](../../asset/img/getting-started/nc054.png)
3.点击Win的菜单 输入框输入QQ 然后打开文件位置
![alt text](../../asset/img/getting-started/nc052.png)
4.再次右键打开文件位置 到达到QQ目录
![alt text](../../asset/img/getting-started/nc053.png)
5.点击粘贴 如果提升是否覆盖 点击确认
![alt text](../../asset/img/getting-started/nc055.png)
6.这个时候回到NC目录 空白处右键点击如下图的按钮
![alt text](../../asset/img/getting-started/nc056.png)
7.如果上面这部不会 在地址栏输入wt回车也可以参考下图
![alt text](../../asset/img/getting-started/nc057.png)
8.完成后 来到弹出的黑色窗口输入
```
powershell -ExecutionPolicy ByPass -File ./BootWay05.ps1 -verb runas
```
如果乱码叉掉窗口从第6步或者第7步重来
```
powershell -ExecutionPolicy ByPass -File ./BootWay05-utf8.ps1 -verb runas
```
记得回车哦

## 如何再次启动?
仅进行上面的6-8步

# 如果我是说如果教程没有看懂 应该如何处理?
这个时候不要慌张 多读多学
9 changes: 8 additions & 1 deletion docs/zh-CN/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ NapCatQQ 是基于 PC NTQQ 客户端本体实现的 QQ Bot 框架,稳定安全
为了避免二次启动,可以事先配置好 NapCat 的基础设置,见 [配置 NapCat](./config.md)

## 启动NapCatQQ

::: details Win 64系统手动配置
Way5仅支持WinX64
[前往了解BootWay5手动配置方案](/zh-CN/guide/BootWay05.md)
:::
::: details Linux一键脚本
`curl -o napcat.sh https://fastly.jsdelivr.net/gh/NapNeko/NapCat-Installer@master/script/install.sh && sudo bash napcat.sh`
:::
Expand All @@ -46,7 +49,11 @@ NapCatQQ 是基于 PC NTQQ 客户端本体实现的 QQ Bot 框架,稳定安全
:::

::: details 不想使用方便的方式? 想手动配置
Way5仅支持WinX64
[前往了解BootWay5手动配置方案](/zh-CN/guide/BootWay05.md)
Way3支持任意系统
[前往了解BootWay3手动配置方案](/zh-CN/guide/BootWay03.md)

:::

### 启动之后
Expand Down
Binary file added docs/zh-CN/guide/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b2a124b

Please sign in to comment.