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 +7 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/kernel.js +2 -2
package/CHANGELOG.md
CHANGED
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.
|
|
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
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.
|
|
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.
|
|
189
|
+
const extractPath = config.DIRS.kernel;
|
|
190
190
|
let extractedBinary = null;
|
|
191
191
|
|
|
192
192
|
try {
|