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.
15 lines
286 B
15 lines
286 B
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)
|
|
}
|
|
}
|
|
}
|
|
|