File tree Expand file tree Collapse file tree
src/main/java/com/github/kr328/clash Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ task("downloadGeoFiles") {
4141 " https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat" to " geosite.dat" ,
4242 // "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb" to "country.mmdb",
4343 " https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb" to " ASN.mmdb" ,
44+ " https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/BundleMRS.7z" to " BundleMRS.7z" ,
4445 )
4546
4647 doLast {
Original file line number Diff line number Diff line change @@ -68,6 +68,16 @@ class MainApplication : Application() {
6868 assets.open(" ASN.mmdb" ).copyTo(it)
6969 }
7070 }
71+
72+ val bundleMRSFile = File (clashDir, " BundleMRS.7z" )
73+ if (bundleMRSFile.exists() && bundleMRSFile.lastModified() < updateDate) {
74+ bundleMRSFile.delete()
75+ }
76+ if (! bundleMRSFile.exists()) {
77+ FileOutputStream (bundleMRSFile).use {
78+ assets.open(" BundleMRS.7z" ).copyTo(it)
79+ }
80+ }
7181 }
7282
7383 fun finalize () {
You can’t perform that action at this time.
0 commit comments