Skip to content

Commit

Permalink
Merge pull request #42 from lyw182/main
Browse files Browse the repository at this point in the history
fix #41,and add linux.framework installation method
  • Loading branch information
MliKiowa authored Oct 6, 2024
2 parents ce85ca5 + 87e8e49 commit 3128c71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docs/zh-CN/guide/boot/shell/BootWay03-Linux-SemiAuto.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const hasNapcatParam = process.argv.includes("--no-sandbox");
if (hasNapcatParam) {
(async () => {
await import("file://" + path.join(CurrentPath, "./napcat/napcat.mjs"));
// await import("file://" + "/path/to/napcat/napcat.mjs"));
// 需要修改napcat的用户,在"/path/to/napcat"段写自己的napcat文件夹位置,并注释path.join所在行
})();
} else {
require("./application/app_launcher/index.js");
Expand All @@ -23,14 +25,16 @@ if (hasNapcatParam) {
```javascript
echo 'const fs = require("fs");
const path = require("path");
const CurrentPath = path.dirname(__filename)
const CurrentPath = path.dirname(__filename);
const hasNapcatParam = process.argv.includes("--no-sandbox");
if (hasNapcatParam) {
(async () => {
await import("file://" + path.join(CurrentPath, "./napcat/napcat.mjs"));
// await import("file://" + "/path/to/napcat/napcat.mjs"));
// 需要修改napcat的用户,在"/path/to/napcat"段写自己的napcat文件夹位置,并注释path.join所在行
})();
} else {
require(String.raw`/opt/LiteLoaderQQNT`); 引号中写入你的liteloaderqqnt路径
require(String.raw`/opt/LiteLoaderQQNT`); //引号中写入你的liteloaderqqnt路径
}' > /opt/QQ/resources/app/loadNapCat.js
```
3. 安装napcat shell 到 /opt/QQ/resources/app/napcat 确保 /opt/QQ/resources/app/napcat/napcat.js存在
Expand Down
4 changes: 2 additions & 2 deletions docs/zh-CN/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ NapCatQQ V2 正式开始测试,欢迎来到 NapCatQQ (aka 猫猫框架) 的使
[源码仓库](https://github.com/cnxysoft/NapCat.Framework.Installer)
:::

::: details Framework的Linux 一键脚本
::: details Framework的Linux 一键脚本 (适用于 Ubuntu **20+** / Debian **10+** / CentOS **9** / Archlinux)

``` bash
正在规划中
curl -o napcat.sh https://nclatest.znin.net/NapNeko/NapCat-Installer/main/script/install.framework.sh && sudo bash napcat.sh
```

:::
Expand Down

0 comments on commit 3128c71

Please sign in to comment.