Compare commits

..

12 Commits

Author SHA1 Message Date
手瓜一十雪
5e026a3e8d fix:update info&bat script 2024-04-15 10:32:54 +08:00
手瓜一十雪
d5e117b89f fix:re token 2024-04-15 08:19:15 +08:00
手瓜一十雪
c87a5501df feat:boot 2024-04-15 08:04:56 +08:00
手瓜一十雪
7584ebba0b feat:boot 2024-04-15 08:04:23 +08:00
手瓜一十雪
66075e3960 fix 2024-04-15 08:00:02 +08:00
linyuchen
193ba781a0 fix: readme syntax 2024-04-15 02:07:23 +08:00
linyuchen
3e5dd64acc Update README.md 2024-04-15 01:48:57 +08:00
手瓜一十雪
d2e6b27ecd fix 2024-04-15 01:17:24 +08:00
手瓜一十雪
0588541357 fix 2024-04-15 01:11:29 +08:00
手瓜一十雪
096ea84af6 fix 2024-04-15 01:01:36 +08:00
手瓜一十雪
04d0cfd510 fix:build 2024-04-15 00:54:02 +08:00
手瓜一十雪
7653f969ec chore:workflow 2024-04-15 00:52:59 +08:00
6 changed files with 36 additions and 18 deletions

View File

@@ -65,3 +65,28 @@ 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 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:
name: NapCat V0.0.0
token: ${{ secrets.NAPCAT_BUILD }}
files: |
NapCat.win32.x64.zip
NapCat.linux.x64.zip
NapCat.linux.arm64.zip
NapCat.darwin.x64.zip
NapCat.darwin.arm64.zip
draft: true

View File

@@ -10,6 +10,8 @@ NapCatQQ瞌睡猫QQ不准叫我NCQQ像睡着了一样在后台低
由于 Linux 上的 QQ 图形依赖较多,会导致内存占用小高,大约 **100+M**,目前正在研究如何优化
具体占用会因人而异QQ 群、好友越多占用越高
## 下载
前往 Release 页面下载最新版本
@@ -90,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
```

View File

@@ -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",

View File

@@ -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 %*

View File

@@ -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 %*

View File

@@ -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(() => {