From 7653f969ec83ec37b65f45a86b229c5830f92c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 00:52:59 +0800 Subject: [PATCH 01/23] chore:workflow --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8a3855d..c97db3eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,6 @@ name: "release" on: + workflow_dispatch: push: tags: - "v*" @@ -65,3 +66,37 @@ jobs: with: name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }} path: dist + release-napcat: + needs:[build-win32,build-linux] + runs-on: ubuntu-latest + steps: + - name: Download Linux Amd64 + uses: actions/download-artifact@v2 + with: + name: NapCat.linux.amd64 + - name: Download Linux Arm64 + uses: actions/download-artifact@v2 + with: + name: NapCat.linux.arm64 + - name: Download Darwin Arm64 + uses: actions/download-artifact@v2 + with: + name: NapCat.darwin.arm64 + - name: Download Darwin Amd64 + uses: actions/download-artifact@v2 + with: + name: NapCat.darwin.amd64 + - name: Download Window Amd.64 + uses: actions/download-artifact@v2 + with: + name: NapCat.win32.amd64 + - name: Create Release Draft and Upload Artifacts + uses: softprops/action-gh-release@v1 + with: + files: | + NapCat.win32.amd64.zip + NapCat.linux.amd64.zip + NapCat.linux.arm64.zip + NapCat.darwin.amd64.zip + NapCat.darwin.arm64.zip + draft: true From 04d0cfd5107e0a75c5cc7ca033221e125dc97a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 00:54:02 +0800 Subject: [PATCH 02/23] fix:build --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c97db3eb..dc72b7c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,7 +67,7 @@ jobs: name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }} path: dist release-napcat: - needs:[build-win32,build-linux] + needs: [build-win32,build-linux] runs-on: ubuntu-latest steps: - name: Download Linux Amd64 From 096ea84af64c666dac907410d4e5a53f539bdeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 01:01:36 +0800 Subject: [PATCH 03/23] fix --- .github/workflows/release.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc72b7c6..b018e8d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,26 +70,9 @@ jobs: needs: [build-win32,build-linux] runs-on: ubuntu-latest steps: - - name: Download Linux Amd64 - uses: actions/download-artifact@v2 - with: - name: NapCat.linux.amd64 - - name: Download Linux Arm64 - uses: actions/download-artifact@v2 - with: - name: NapCat.linux.arm64 - - name: Download Darwin Arm64 - uses: actions/download-artifact@v2 - with: - name: NapCat.darwin.arm64 - - name: Download Darwin Amd64 - uses: actions/download-artifact@v2 - with: - name: NapCat.darwin.amd64 - - name: Download Window Amd.64 - uses: actions/download-artifact@v2 - with: - name: NapCat.win32.amd64 + - name: Download All Artifact + uses: actions/download-artifact@v4 + - name: Create Release Draft and Upload Artifacts uses: softprops/action-gh-release@v1 with: From 058854135777f5b47f7ad136ad2541a7b3b7a221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 01:11:29 +0800 Subject: [PATCH 04/23] fix --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b018e8d7..f766439b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,10 +72,17 @@ jobs: steps: - name: Download All Artifact uses: actions/download-artifact@v4 - + + - name: Compress subdirectories + run: | + for dir in */; do + base=$(basename "$dir") + zip -r "${base}.zip" "$dir" + done - name: Create Release Draft and Upload Artifacts uses: softprops/action-gh-release@v1 with: + token: ${{ secrets.NAPCAT_BUILD }} files: | NapCat.win32.amd64.zip NapCat.linux.amd64.zip From d2e6b27ecd71e646e91d0b89079215a5a9e4965e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 01:17:24 +0800 Subject: [PATCH 05/23] fix --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f766439b..e86f418e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,11 +82,12 @@ jobs: - name: Create Release Draft and Upload Artifacts uses: softprops/action-gh-release@v1 with: + name: NapCat V0.0.0 token: ${{ secrets.NAPCAT_BUILD }} files: | - NapCat.win32.amd64.zip - NapCat.linux.amd64.zip + NapCat.win32.x64.zip + NapCat.linux.x64.zip NapCat.linux.arm64.zip - NapCat.darwin.amd64.zip + NapCat.darwin.x64.zip NapCat.darwin.arm64.zip draft: true From 3e5dd64acc831c192fb0e2f354bde2c0b4430a08 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 15 Apr 2024 01:48:57 +0800 Subject: [PATCH 06/23] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0dd6aff9..0496e3e6 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ NapCatQQ(瞌睡猫QQ,不准叫我NCQQ!),像睡着了一样在后台低 由于 Linux 上的 QQ 图形依赖较多,会导致内存占用小高,大约 **100+M**,目前正在研究如何优化 +具体占用会因人而异,QQ 群、好友越多占用越高 + ## 下载 前往 Release 页面下载最新版本 From 193ba781a0e47872343bdefee1138e8908a8a22e Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 15 Apr 2024 02:07:23 +0800 Subject: [PATCH 07/23] fix: readme syntax --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 0496e3e6..3619fa19 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,6 @@ json 配置内容参数解释: [rpm arm版本](https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.7_240403_aarch64_01.rpm) ``` -```bash - ```bash sudo apt install ./qq.deb ``` From 66075e3960b572c2cc35262869d08a0459a50fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 08:00:02 +0800 Subject: [PATCH 08/23] fix --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e86f418e..36782813 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,5 @@ name: "release" on: - workflow_dispatch: push: tags: - "v*" @@ -83,7 +82,7 @@ jobs: uses: softprops/action-gh-release@v1 with: name: NapCat V0.0.0 - token: ${{ secrets.NAPCAT_BUILD }} + token: ${{ secrets.GITHUB_TOKEN }} files: | NapCat.win32.x64.zip NapCat.linux.x64.zip From 7584ebba0b97a475b53cbac5d1fa72e0ad328e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 08:04:23 +0800 Subject: [PATCH 09/23] feat:boot --- script/napcat.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/napcat.bat b/script/napcat.bat index db48c2af..c3b4f403 100644 --- a/script/napcat.bat +++ b/script/napcat.bat @@ -19,4 +19,4 @@ for %%a in ("!RetString!") do ( set "QQPath=!pathWithoutUninstall!QQ.exe" set ELECTRON_RUN_AS_NODE=1 echo !QQPath! -!QQPath! ./napcat.cjs \ No newline at end of file +!QQPath! ./napcat.cjs %* From c87a5501dfc1ade2d9e6f35d0777c7cb869ef59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 08:04:56 +0800 Subject: [PATCH 10/23] feat:boot --- script/napcat-utf8.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/napcat-utf8.bat b/script/napcat-utf8.bat index e1c5bdb3..d2b358c7 100644 --- a/script/napcat-utf8.bat +++ b/script/napcat-utf8.bat @@ -19,4 +19,4 @@ for %%a in ("!RetString!") do ( set "QQPath=!pathWithoutUninstall!QQ.exe" set ELECTRON_RUN_AS_NODE=1 echo !QQPath! -!QQPath! ./napcat.cjs \ No newline at end of file +!QQPath! ./napcat.cjs %* From d5e117b89f9126e473d4b32fe48aa3e673e9db11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 08:19:15 +0800 Subject: [PATCH 11/23] fix:re token --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36782813..b0170a50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,7 +82,7 @@ jobs: uses: softprops/action-gh-release@v1 with: name: NapCat V0.0.0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.NAPCAT_BUILD }} files: | NapCat.win32.x64.zip NapCat.linux.x64.zip From 5e026a3e8decb1b7cb817d996d21267d67345e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 10:32:54 +0800 Subject: [PATCH 12/23] fix:update info&bat script --- package.json | 2 +- script/napcat-utf8.bat | 10 +++------- script/napcat.bat | 11 +++-------- src/onebot11/index.ts | 2 ++ 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 1806eb05..c326649e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "1.0.0", + "version": "1.0.1", "scripts": { "watch:dev": "vite --mode development", "watch:prod": "vite --mode production", diff --git a/script/napcat-utf8.bat b/script/napcat-utf8.bat index d2b358c7..ddee7f54 100644 --- a/script/napcat-utf8.bat +++ b/script/napcat-utf8.bat @@ -2,21 +2,17 @@ setlocal enabledelayedexpansion chcp 65001 :loop_read -for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do ( - set "RetString=%%a" +for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do ( + set "RetString=%%b" goto :napcat_boot ) -goto :loop_read - :napcat_boot for %%a in ("!RetString!") do ( set "pathWithoutUninstall=%%~dpa" - set "fileName=%%~na" - set "extension=%%~xa" ) set "QQPath=!pathWithoutUninstall!QQ.exe" set ELECTRON_RUN_AS_NODE=1 echo !QQPath! -!QQPath! ./napcat.cjs %* +"!QQPath!" ./napcat.cjs %* diff --git a/script/napcat.bat b/script/napcat.bat index c3b4f403..77306064 100644 --- a/script/napcat.bat +++ b/script/napcat.bat @@ -1,22 +1,17 @@ @echo off setlocal enabledelayedexpansion - :loop_read -for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do ( - set "RetString=%%a" +for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do ( + set "RetString=%%b" goto :napcat_boot ) -goto :loop_read - :napcat_boot for %%a in ("!RetString!") do ( set "pathWithoutUninstall=%%~dpa" - set "fileName=%%~na" - set "extension=%%~xa" ) set "QQPath=!pathWithoutUninstall!QQ.exe" set ELECTRON_RUN_AS_NODE=1 echo !QQPath! -!QQPath! ./napcat.cjs %* +"!QQPath!" ./napcat.cjs %* diff --git a/src/onebot11/index.ts b/src/onebot11/index.ts index c0c86de7..6a8a7b4c 100644 --- a/src/onebot11/index.ts +++ b/src/onebot11/index.ts @@ -24,11 +24,13 @@ checkVersion().then((remoteVersion: string) => { for (const k of [0, 1, 2]) { if (parseInt(remoteVersionList[k]) > parseInt(localVersionList[k])) { console.log('检测到更新,请前往 https://github.com/NapNeko/NapCatQQ 下载 NapCatQQ V', remoteVersion); + return; } else if (parseInt(remoteVersionList[k]) < parseInt(localVersionList[k])) { break; } } console.log('当前已是最新版本,版本:', localVersion); + return; }); new NapCatOnebot11(); napCatCore.addLoginSuccessCallback(() => { From d7ee3fec3d9455c6dec00ace8239a03ef3974898 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 15 Apr 2024 10:36:48 +0800 Subject: [PATCH 13/23] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3619fa19..71d1f784 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ json 配置内容参数解释: ### Windows 启动 -运行`powershell ./napcat.ps1`, 或者 `napcat.bat`,如果出现乱码,可以尝试运行`napcat_utf8.ps1` +运行`powershell ./napcat.ps1`, 或者 `napcat.bat`,如果出现乱码,可以尝试运行`napcat-utf8.ps1` 或 `napcat-utf8.bat` ### Linux 启动 From 7eff4dcf02a9ea2686a9a01e32126466da4f1c28 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 15 Apr 2024 10:44:31 +0800 Subject: [PATCH 14/23] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 71d1f784..c3f47e63 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ json 配置内容参数解释: 运行`powershell ./napcat.ps1`, 或者 `napcat.bat`,如果出现乱码,可以尝试运行`napcat-utf8.ps1` 或 `napcat-utf8.bat` +*如果出现 powershell 运行不了,以管理员身份打开 powershell,输入 `Set-ExecutionPolicy RemoteSigned`* + ### Linux 启动 运行`napcat.sh` From bb7408dbe941c97c1e64ab4e86155724efccc539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 10:48:08 +0800 Subject: [PATCH 15/23] chore:workflow-build --- .github/workflows/build.yml | 67 +++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..f650bde1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,67 @@ +name: "Build" +on: + push: + +jobs: + build-linux: + if: ${{ ! startsWith(github.event.head_commit.message, 'build:') }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target_platform: [linux,darwin] + target_arch: [x64, arm64] + steps: + - name: Clone Main Repository + uses: actions/checkout@v4 + with: + repository: 'NapNeko/NapCat' + submodules: true + token: ${{ secrets.NAPCAT_BUILD }} + - name: Use Node.js 20.X + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Build NuCat Linux + run: | + npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }} + npm run build:prod + cd dist + npm i --omit=dev --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }} + cd .. + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }} + path: dist + build-win32: + if: ${{ ! startsWith(github.event.head_commit.message, 'build:') }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target_platform: [win32] + target_arch: [x64] + steps: + - name: Clone Main Repository + uses: actions/checkout@v4 + with: + repository: 'NapNeko/NapCat' + submodules: true + token: ${{ secrets.NAPCAT_BUILD }} + - name: Use Node.js 20.X + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Build NuCat Linux + run: | + npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }} + npm run build:prod + cd dist + npm i --omit=dev --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }} + cd .. + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }} + path: dist \ No newline at end of file From a6a339dc597d0a6d64ef467d3ed5381f8611062f Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 15 Apr 2024 10:52:34 +0800 Subject: [PATCH 16/23] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3f47e63..ce2f4d09 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ NapCatQQ(瞌睡猫QQ,不准叫我NCQQ!),像睡着了一样在后台低 ## 启动 -NapCat 是基于 官方NTQQ 实现的Bot框架,因此先需要安装官方QQ +NapCat 是基于 官方NTQQ 实现的Bot框架,因此先需要安装官方QQ,**注意同个账号不能同时登录原版 QQ 和 NapCatQQ** *如果没有安装 QQ 请往后翻查看安装方法* From 56463d9e3691cbf89ea8a07b32b07eb078c19d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 10:52:41 +0800 Subject: [PATCH 17/23] chore: issue --- .github/ISSUE_TEMPLATE/bug_report.yml | 81 +++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 00000000..2714af10 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,81 @@ +name: Bug 反馈 +description: 报告可能的 NapCat 异常行为 +title: '[BUG] ' +labels: bug +body: + - type: markdown + attributes: + value: | + 欢迎来到 NapCat 的 Issue Tracker!请填写以下表格来提交 Bug。 + 在提交新的 Bug 反馈前,请确保您: + * 已经搜索了现有的 issues,并且没有找到可以解决您问题的方法 + * 不与现有的某一 issue 重复 + - type: input + id: system-version + attributes: + label: 系统版本 + description: 运行 QQNT 的系统版本 + placeholder: Windows 10 Pro Workstation 22H2 + validations: + required: true + - type: input + id: qqnt-version + attributes: + label: QQNT 版本 + description: 可在 QQNT 的「关于」的设置页中找到 + placeholder: 9.9.7-21804 + validations: + required: true + - type: input + id: napcat-version + attributes: + label: NapCat 版本 + description: 可在 LiteLoaderQQNT 的设置页或是 QQNT 的设置页侧栏中找到 + placeholder: 1.0.0 + validations: + required: true + - type: input + id: onebot-client-version + attributes: + label: OneBot 客户端 + description: 连接至 NapCat 的客户端版本信息 + placeholder: Overflow 2.16.0-2cf7991-SNAPSHOT + validations: + required: true + - type: textarea + id: what-happened + attributes: + label: 发生了什么? + description: 填写你认为的 NapCat 的不正常行为 + validations: + required: true + - type: textarea + id: how-reproduce + attributes: + label: 如何复现 + description: 填写应当如何操作才能触发这个不正常行为 + placeholder: | + 1. xxx + 2. xxx + 3. xxx + validations: + required: true + - type: textarea + id: what-expected + attributes: + label: 期望的结果? + description: 填写你认为 NapCat 应当执行的正常行为 + validations: + required: true + - type: textarea + id: napcat-log + attributes: + label: NapCat 运行日志 + description: 粘贴相关日志内容到此处 + render: shell + - type: textarea + id: onebot-client-log + attributes: + label: OneBot 客户端运行日志 + description: 粘贴 OneBot 客户端的相关日志内容到此处 + render: shell \ No newline at end of file From af8c304bd41d4788911c3674c9997be612a8ad48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 10:54:36 +0800 Subject: [PATCH 18/23] fix:build workflow --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f650bde1..f2d67937 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: jobs: build-linux: - if: ${{ ! startsWith(github.event.head_commit.message, 'build:') }} + if: ${{ startsWith(github.event.head_commit.message, 'build:') }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -35,7 +35,7 @@ jobs: name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }} path: dist build-win32: - if: ${{ ! startsWith(github.event.head_commit.message, 'build:') }} + if: ${{ startsWith(github.event.head_commit.message, 'build:') }} runs-on: ubuntu-latest strategy: fail-fast: false From bf6934e8ac83fd5e6afef11757e9d8c886112cfd Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 15 Apr 2024 10:55:23 +0800 Subject: [PATCH 19/23] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ce2f4d09..ba018a29 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,9 @@ $env:FFMPEG_PATH="d:\ffmpeg\bin\ffmpeg.exe" 不用管,这是正常现象,是因为 QQ 本身的问题,不影响使用 +## API 文档 + +参考 [LLOneBot](https://llonebot.github.io/zh-CN/develop/api) 的文档