diff --git a/plugin/lib/quickcomposer/video/ffmpeg.js b/plugin/lib/quickcomposer/video/ffmpeg.js index 6f048d4..2402d91 100644 --- a/plugin/lib/quickcomposer/video/ffmpeg.js +++ b/plugin/lib/quickcomposer/video/ffmpeg.js @@ -11,6 +11,12 @@ * @returns {Promise} 返回Promise */ async function runFFmpeg(args, options = {}) { + if (!utools.runFFmpeg) { + quickcommand.showSystemMessageBox( + "请先升级uTools到6.1.0及以上版本" + ); + return; + } const { title = "FFmpeg处理", text = "处理中...", diff --git a/src/js/composer/commands/index.js b/src/js/composer/commands/index.js index f8dcea8..46ea57d 100644 --- a/src/js/composer/commands/index.js +++ b/src/js/composer/commands/index.js @@ -21,21 +21,16 @@ import { scriptCommands } from "./scriptCommands"; import { browserCommands } from "./browserCommands"; import { videoCommands } from "./videoCommands"; -const platformCommands = { - win32: [windowsCommands], - darwin: [macosCommands], - linux: [], -}; - export const commandCategories = [ fileCommands, networkCommands, systemCommands, audioCommands, imageCommands, - ...(utools.runFFmpeg ? [videoCommands] : []), + videoCommands, utoolsCommands, - ...platformCommands[window.processPlatform], + windowsCommands, + macosCommands, browserCommands, dataCommands, codingCommands,