Compare commits

..

2 Commits

Author SHA1 Message Date
手瓜一十雪
d53607a118 fix 2025-04-17 14:39:30 +08:00
Mlikiowa
5f637e064a release: v4.7.26 2025-04-17 06:29:11 +00:00
4 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
"name": "NapCatQQ",
"slug": "NapCat.Framework",
"description": "高性能的 OneBot 11 协议实现",
"version": "4.7.25",
"version": "4.7.26",
"icon": "./logo.png",
"authors": [
{

View File

@@ -2,7 +2,7 @@
"name": "napcat",
"private": true,
"type": "module",
"version": "4.7.25",
"version": "4.7.26",
"scripts": {
"build:universal": "npm run build:webui && vite build --mode universal || exit 1",
"build:framework": "npm run build:webui && vite build --mode framework || exit 1",

View File

@@ -281,7 +281,7 @@ export async function downloadFFmpeg(
return null;
}
}
export async function downloadFFmpegIfNotExists(log:LogWrapper) {
export async function downloadFFmpegIfNotExists(log: LogWrapper) {
// 仅限Windows
if (os.platform() !== 'win32') {
return {
@@ -293,7 +293,7 @@ export async function downloadFFmpegIfNotExists(log:LogWrapper) {
const ffmpeg_exist = fs.existsSync(path.join(currentPath, 'ffmpeg', 'ffmpeg.exe'));
const ffprobe_exist = fs.existsSync(path.join(currentPath, 'ffmpeg', 'ffprobe.exe'));
if (!ffmpeg_exist || !ffprobe_exist) {
await downloadFFmpeg('./ffmpeg', './cache', (percentage: number, message: string) => {
await downloadFFmpeg(path.join(currentPath, 'ffmpeg'), path.join(currentPath, 'cache'), (percentage: number, message: string) => {
log.log(`[Ffmpeg] [Download] ${percentage}% - ${message}`);
});
return {

View File

@@ -1 +1 @@
export const napCatVersion = '4.7.25';
export const napCatVersion = '4.7.26';