mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d53607a118 | ||
![]() |
5f637e064a |
@@ -4,7 +4,7 @@
|
||||
"name": "NapCatQQ",
|
||||
"slug": "NapCat.Framework",
|
||||
"description": "高性能的 OneBot 11 协议实现",
|
||||
"version": "4.7.25",
|
||||
"version": "4.7.26",
|
||||
"icon": "./logo.png",
|
||||
"authors": [
|
||||
{
|
||||
|
@@ -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",
|
||||
|
@@ -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 {
|
||||
|
@@ -1 +1 @@
|
||||
export const napCatVersion = '4.7.25';
|
||||
export const napCatVersion = '4.7.26';
|
||||
|
Reference in New Issue
Block a user