mirror of https://github.com/dnomd343/XProxy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
286 B
16 lines
286 B
2 years ago
|
package asset
|
||
|
|
||
|
import (
|
||
|
"XProxy/cmd/common"
|
||
|
log "github.com/sirupsen/logrus"
|
||
|
)
|
||
|
|
||
|
func UpdateAssets(urls map[string]string, assetDir string) {
|
||
|
if len(urls) != 0 {
|
||
|
log.Info("Start update assets")
|
||
|
for file, url := range urls {
|
||
|
common.DownloadFile(url, assetDir+"/"+file)
|
||
|
}
|
||
|
}
|
||
|
}
|