mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 14:34:13 +08:00
不再根据系统和环境隐藏win自动化、mac自动化和视频处理分类
This commit is contained in:
parent
98c9b5ba33
commit
2476037c09
@ -11,6 +11,12 @@
|
|||||||
* @returns {Promise} 返回Promise
|
* @returns {Promise} 返回Promise
|
||||||
*/
|
*/
|
||||||
async function runFFmpeg(args, options = {}) {
|
async function runFFmpeg(args, options = {}) {
|
||||||
|
if (!utools.runFFmpeg) {
|
||||||
|
quickcommand.showSystemMessageBox(
|
||||||
|
"请先升级uTools到6.1.0及以上版本"
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
const {
|
const {
|
||||||
title = "FFmpeg处理",
|
title = "FFmpeg处理",
|
||||||
text = "处理中...",
|
text = "处理中...",
|
||||||
|
@ -21,21 +21,16 @@ import { scriptCommands } from "./scriptCommands";
|
|||||||
import { browserCommands } from "./browserCommands";
|
import { browserCommands } from "./browserCommands";
|
||||||
import { videoCommands } from "./videoCommands";
|
import { videoCommands } from "./videoCommands";
|
||||||
|
|
||||||
const platformCommands = {
|
|
||||||
win32: [windowsCommands],
|
|
||||||
darwin: [macosCommands],
|
|
||||||
linux: [],
|
|
||||||
};
|
|
||||||
|
|
||||||
export const commandCategories = [
|
export const commandCategories = [
|
||||||
fileCommands,
|
fileCommands,
|
||||||
networkCommands,
|
networkCommands,
|
||||||
systemCommands,
|
systemCommands,
|
||||||
audioCommands,
|
audioCommands,
|
||||||
imageCommands,
|
imageCommands,
|
||||||
...(utools.runFFmpeg ? [videoCommands] : []),
|
videoCommands,
|
||||||
utoolsCommands,
|
utoolsCommands,
|
||||||
...platformCommands[window.processPlatform],
|
windowsCommands,
|
||||||
|
macosCommands,
|
||||||
browserCommands,
|
browserCommands,
|
||||||
dataCommands,
|
dataCommands,
|
||||||
codingCommands,
|
codingCommands,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user