Skip to content

Commit

Permalink
feat: replace to Loyalsoldier/v2ray-rules-dat
Browse files Browse the repository at this point in the history
  • Loading branch information
chg1f committed Apr 19, 2024
1 parent bbd9f11 commit b5c7d87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ func get(downloadURL *string) ([]byte, error) {

func download(release *github.RepositoryRelease) ([]byte, error) {
geositeAsset := common.Find(release.Assets, func(it *github.ReleaseAsset) bool {
return *it.Name == "dlc.dat"
return *it.Name == "geosite.dat"
})
geositeChecksumAsset := common.Find(release.Assets, func(it *github.ReleaseAsset) bool {
return *it.Name == "dlc.dat.sha256sum"
return *it.Name == "geosite.dat.sha256sum"
})
if geositeAsset == nil {
return nil, E.New("geosite asset not found in upstream release ", release.Name)
Expand Down Expand Up @@ -380,8 +380,8 @@ func release(source string, destination string, output string, cnOutput string,

func main() {
err := release(
"v2fly/domain-list-community",
"sagernet/sing-geosite",
"Loyalsoldier/v2ray-rules-dat",
"chg1f/sing-geosite-vrt",
"geosite.db",
"geosite-cn.db",
"rule-set",
Expand Down

0 comments on commit b5c7d87

Please sign in to comment.