Skip to content

Commit c9272d0

Browse files
author
Taois
committed
feat: 插件改动,windows的插件从-windows.exe改为-win.exe
1 parent 2acb8df commit c9272d0

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.plugins.example.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
22
* 插件配置示例文件
33
* 定义系统中可用的插件及其配置参数
4-
*
4+
*
55
* 插件配置说明:
66
* - name: 插件名称,用于标识插件
77
* - path: 插件路径,相对于项目根目录
88
* - params: 插件启动参数,传递给插件的命令行参数
99
* - desc: 插件描述,说明插件的功能
1010
* - active: 是否激活插件,true表示启用,false表示禁用
11-
*
11+
*
1212
* 使用方法:
1313
* 1. 复制此文件为 .plugins.js
1414
* 2. 根据需要修改插件配置
@@ -30,6 +30,13 @@ const plugins = [
3030
desc: '嗷呜适配代理服务', // 插件描述:提供视频适配代理功能
3131
active: true // 是否激活:true表示启用此插件
3232
},
33+
{
34+
name: 'pup-sniffer', // 插件名称
35+
path: 'plugins/pup-sniffer', // 插件路径
36+
params: '-port 57573', // 启动参数:端口57573
37+
desc: 'drplayer嗅探服务', // 插件描述:提供视频适配代理功能
38+
active: true // 是否激活:true表示启用此插件
39+
},
3340
]
3441

3542
export default plugins;

utils/pluginManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function getPluginBinary(rootDir, pluginPath, pluginName) {
3939

4040
let binaryName = null;
4141
if (platform === "win32") {
42-
binaryName = `${pluginName}-windows.exe`;
42+
binaryName = `${pluginName}-win.exe`;
4343
} else if (platform === "linux") {
4444
binaryName = `${pluginName}-linux`;
4545
} else if (platform === "darwin") {

0 commit comments

Comments
 (0)