From d8b772644032faab9375faba2e97a3bc196671ee 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: Tue, 17 Sep 2024 11:46:20 +0800 Subject: [PATCH] release:2.6.1 --- manifest.json | 2 +- package.json | 2 +- src/common/version.ts | 2 +- src/webui/ui/NapCat.ts | 2 +- static/assets/renderer.js | 2 +- vite.config.ts | 28 ---------------------------- 6 files changed, 5 insertions(+), 33 deletions(-) diff --git a/manifest.json b/manifest.json index 039890c0..f60dc6a1 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "2.6.0", + "version": "2.6.1", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index ce99f23c..273c4a70 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "2.6.0", + "version": "2.6.1", "scripts": { "build:framework": "vite build --mode framework", "build:shell": "vite build --mode shell", diff --git a/src/common/version.ts b/src/common/version.ts index c11d116c..925373fc 100644 --- a/src/common/version.ts +++ b/src/common/version.ts @@ -1 +1 @@ -export const napCatVersion = '2.6.0'; +export const napCatVersion = '2.6.1'; diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index b744c571..8896e0f6 100644 --- a/src/webui/ui/NapCat.ts +++ b/src/webui/ui/NapCat.ts @@ -30,7 +30,7 @@ async function onSettingWindowCreated(view: Element) { SettingItem( 'Napcat', undefined, - SettingButton('V2.6.0', 'napcat-update-button', 'secondary'), + SettingButton('V2.6.1', 'napcat-update-button', 'secondary'), ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 69c8712a..b41bdb60 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -164,7 +164,7 @@ async function onSettingWindowCreated(view) { SettingItem( 'Napcat', void 0, - SettingButton("V2.6.0", "napcat-update-button", "secondary") + SettingButton("V2.6.1", "napcat-update-button", "secondary") ) ]), SettingList([ diff --git a/vite.config.ts b/vite.config.ts index 5cb7aa27..fde083d8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,6 @@ import { defineConfig, PluginOption, UserConfig } from 'vite'; import { resolve } from 'path'; import nodeResolve from '@rollup/plugin-node-resolve'; import { builtinModules } from 'module'; -import babel from 'vite-plugin-babel'; //依赖排除 const external = ['silk-wasm', 'ws', 'express', 'fluent-ffmpeg', 'log4js', 'qrcode-terminal']; const nodeModules = [...builtinModules, builtinModules.map(m => `node:${m}`)].flat(); @@ -24,20 +23,6 @@ if (process.env.NAPCAT_BUILDSYS == 'linux') { startScripts = ['./script/KillQQ.bat']; } const FrameworkBaseConfigPlugin: PluginOption[] = [ - // PreprocessorDirectives(), - babel({ - filter: /.*\.(ts|js)$/, - babelConfig: { - babelrc: false, - configFile: false, - presets: ['@babel/preset-typescript'], - plugins: [ - //'2018-09', decoratorsBeforeExport: true - ['@babel/plugin-proposal-decorators', { legacy: true }], - '@babel/plugin-proposal-class-properties', - ], - }, - }), cp({ targets: [ { src: './manifest.json', dest: 'dist' }, @@ -57,19 +42,6 @@ const FrameworkBaseConfigPlugin: PluginOption[] = [ ]; const ShellBaseConfigPlugin: PluginOption[] = [ // PreprocessorDirectives(), - babel({ - filter: /.*\.(ts|js)$/, - babelConfig: { - babelrc: false, - configFile: false, - presets: ['@babel/preset-typescript'], - plugins: [ - //'2018-09', decoratorsBeforeExport: true - ['@babel/plugin-proposal-decorators', { legacy: true }], - '@babel/plugin-proposal-class-properties', - ], - }, - }), cp({ targets: [ // ...external.map(genCpModule),