不再根据系统和环境隐藏win自动化、mac自动化和视频处理分类

This commit is contained in:
fofolee 2025-02-17 09:04:41 +08:00
parent 98c9b5ba33
commit 2476037c09
2 changed files with 9 additions and 8 deletions

View File

@ -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 = "处理中...",

View File

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