mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 13:34:08 +08:00
不再根据系统和环境隐藏win自动化、mac自动化和视频处理分类
This commit is contained in:
parent
98c9b5ba33
commit
2476037c09
@ -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 = "处理中...",
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user