Skip to content

Commit

Permalink
Merge branch 'meta-dev' into meta
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFq1 committed May 1, 2024
2 parents b62ddd7 + 0748145 commit 0c0964a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: robinraju/[email protected]
with:
repository: 'MetaCubeX/mihomo'
tag: "v1.18.3"
tag: "v1.18.4"
fileName: ".*darwin.*64-v.*.gz"

# releaseId: "62870807"
Expand Down
8 changes: 6 additions & 2 deletions ClashX/General/AlphaMetaDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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") &&
Expand Down

0 comments on commit 0c0964a

Please sign in to comment.