Skip to content

Commit 9d044ea

Browse files
author
Taois
committed
fix: filename error
1 parent d224264 commit 9d044ea

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ dist
150150
/scripts/python/appMap.txt
151151
/binary/
152152
/plugins/
153-
/plugin.js
154153
/.claude
154+
/.plugins.js
File renamed without changes.

docs/updateRecord.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
1. 新增猫爪专属订阅码设置,默认为all,设置中心-接口挂载可以配置猫爪订阅码
88
2. 增加严格订阅码模式(启用此开关所有配置地址sub=没填或者不在已有订阅码中都无法访问,不启用则保持以前逻辑显示全部源)
99
3. ds源写法更新,支持 `推荐` `一级` `搜索` 按字符串快捷写法同dr2
10+
4. 根目录 `plugin.example.js` 改名为 `.plugins.example.js`,`plugin.js` 改名为 `.plugins.js`,解决打包7z缺少plugin.js导致ds启动失败问题
1011

1112
### 20250901
1213

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import url from 'url';
77
const EXCLUDE_DIRS = ['.git', '.idea', 'soft', 'plugins/pvideo', 'plugins/req-proxy', 'pyTools', 'drop_code', 'jstest', 'local', 'logs', '对话1.txt', 'vod_cache', 'data/mv'];
88

99
// 要排除的文件列表
10-
const EXCLUDE_FILES = ['config/env.json', '.env', '.claude', 'plugin.js', 'spider/js/UC分享.js', 'spider/js/百忙无果[官].js', 'json/UC分享.json', 'jx/奇奇.js', 'jx/芒果关姐.js', 'data/settings/link_data.json', 'index.json', 'custom.json'];
10+
const EXCLUDE_FILES = ['config/env.json', '.env', '.claude', '.plugins.js', 'yarn.lock', 't4_daemon.pid', 'spider/js/UC分享.js', 'spider/js/百忙无果[官].js', 'json/UC分享.json', 'jx/奇奇.js', 'jx/芒果关姐.js', 'data/settings/link_data.json', 'index.json', 'custom.json'];
1111

1212
// 获取脚本所在目录
1313
const getScriptDir = () => dirname(resolve(url.fileURLToPath(import.meta.url)));

package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
'vod_cache', 'data/mv']
1111

1212
# 要排除的文件列表
13-
EXCLUDE_FILES = ['config/env.json', '.env', '.claude', 'plugin.js', 'spider/js/UC分享.js', 'spider/js/百忙无果[官].js',
13+
EXCLUDE_FILES = ['config/env.json', '.env', '.claude', '.plugins.js', 'yarn.lock', 't4_daemon.pid',
14+
'spider/js/UC分享.js', 'spider/js/百忙无果[官].js',
1415
'json/UC分享.json',
1516
'jx/奇奇.js', 'jx/芒果关姐.js', 'data/settings/link_data.json', 'index.json', 'custom.json']
1617

utils/pluginManager.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ import {fileURLToPath, pathToFileURL} from "url";
77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = path.dirname(__filename);
99

10-
// plugin.js 和 plugin.example.js 在上级目录
11-
const userConfigPath = path.join(__dirname, "../plugin.js");
12-
const exampleConfigPath = path.join(__dirname, "../plugin.example.js");
10+
// .plugins.js 和 .plugins.example.js 在上级目录
11+
const userConfigPath = path.join(__dirname, "../.plugins.js");
12+
const exampleConfigPath = path.join(__dirname, "../.plugins.example.js");
1313

1414
// 尝试加载用户配置,如果没有就用 example
1515
let plugins = [];
1616
try {
1717
console.log(`检查插件配置文件: ${userConfigPath} 是否存在`);
1818
if (fs.existsSync(userConfigPath)) {
1919
plugins = (await import(pathToFileURL(userConfigPath).href)).default;
20-
console.log("[pluginManager] 使用用户 plugin.js 配置");
20+
console.log("[pluginManager] 使用用户 .plugins.js 配置");
2121
} else if (fs.existsSync(exampleConfigPath)) {
2222
plugins = (await import(pathToFileURL(exampleConfigPath).href)).default;
23-
console.log("[pluginManager] 使用默认 plugin.example.js 配置");
23+
console.log("[pluginManager] 使用默认 .plugins.example.js 配置");
2424
}
2525
} catch (err) {
2626
console.error("[pluginManager] 加载插件配置失败:", err);

0 commit comments

Comments
 (0)