From 52da2664a577bd3f17b97bdcc23f153b25afa892 Mon Sep 17 00:00:00 2001 From: mrFq1 <1xxbx0il0@mozmail.com> Date: Wed, 24 Apr 2024 11:35:46 +0800 Subject: [PATCH 1/2] misc: alphaAsset error --- ClashX/General/AlphaMetaDownloader.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ClashX/General/AlphaMetaDownloader.swift b/ClashX/General/AlphaMetaDownloader.swift index dff8ac6af..9e642ebc4 100644 --- a/ClashX/General/AlphaMetaDownloader.swift +++ b/ClashX/General/AlphaMetaDownloader.swift @@ -80,8 +80,12 @@ class AlphaMetaDownloader: NSObject { Promise { resolver in let assetName = assetName() AF.request("https://api.github.com/repos/MetaCubeX/mihomo/releases/tags/Prerelease-Alpha").responseDecodable(of: ReleasesResp.self) { - guard let assets = $0.value?.assets, - let assetName, + guard let assets = $0.value?.assets else { + resolver.reject(errors.downloadFailed) + return + } + + guard let assetName, let asset = assets.first(where: { $0.name.contains(assetName) && !$0.name.contains("cgo") && From 0748145b8181bcb1ab8a98cbf6c6e6c3bd1468bd Mon Sep 17 00:00:00 2001 From: mrFq1 <1xxbx0il0@mozmail.com> Date: Mon, 29 Apr 2024 17:41:35 +0800 Subject: [PATCH 2/2] misc: bump v1.18.4 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a84a5392..6195fc210 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: uses: robinraju/release-downloader@v1.10 with: repository: 'MetaCubeX/mihomo' - tag: "v1.18.3" + tag: "v1.18.4" fileName: ".*darwin.*64-v.*.gz" # releaseId: "62870807"