mihomo-cli 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.1] - 2026-04-11
4
+
5
+ ### 修复
6
+
7
+ - 修复内核下载时引用不存在的目录键 `DIRS.core`,导致下载失败 (`kernel`)
8
+ - 修复订阅页面打开时调用不存在的函数 `readSubscriptionsCache`,导致报错 (`sub web`)
9
+
3
10
  ## [1.5.0] - 2026-04-10
4
11
 
5
12
  ### 新增功能
package/index.js CHANGED
@@ -690,7 +690,7 @@ async function cmdSubscription(args) {
690
690
  console.log('订阅信息中缺少页面地址,正在更新订阅...');
691
691
  try {
692
692
  await subscription.downloadSubscription(target.url, target.name);
693
- const cache = config.readSubscriptionsCache();
693
+ const cache = config.readSubscriptionCache();
694
694
  if (cache[target.name] && cache[target.name].web_page_url) {
695
695
  webPageUrl = cache[target.name].web_page_url;
696
696
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mihomo-cli",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A terminal-based mihomo (Clash.Meta) client for macOS",
5
5
  "bin": {
6
6
  "mihomo-cli": "index.js",
package/src/kernel.js CHANGED
@@ -158,7 +158,7 @@ async function downloadKernel(progressCallback, mirror, releaseInfo) {
158
158
  }
159
159
 
160
160
  const downloadUrl = withMirror(asset.browser_download_url, mirror);
161
- const tempPath = path.join(config.DIRS.core, asset.name);
161
+ const tempPath = path.join(config.DIRS.kernel, asset.name);
162
162
  const sizeMB = (asset.size / 1024 / 1024).toFixed(2);
163
163
 
164
164
  if (progressCallback) {
@@ -186,7 +186,7 @@ async function downloadKernel(progressCallback, mirror, releaseInfo) {
186
186
  progressCallback('解压内核...');
187
187
  }
188
188
 
189
- const extractPath = config.DIRS.core;
189
+ const extractPath = config.DIRS.kernel;
190
190
  let extractedBinary = null;
191
191
 
192
192
  try {