Files
MTranServer/deprecated/go/data/gen_update.go
xxnuo 5c25b294d1 refactor: prepare using js
feat: update

remove python
2026-01-02 20:51:23 +08:00

27 lines
573 B
Go

//go:build ignore
package main
import (
"context"
"log"
"github.com/xxnuo/MTranServer/internal/downloader"
"github.com/xxnuo/MTranServer/internal/models"
)
func main() {
log.Printf("Downloading records.json from %s...", models.RecordsUrl)
d := downloader.New(".")
err := d.Download(models.RecordsUrl, models.RecordsFileName, &downloader.DownloadOptions{
Context: context.Background(),
Overwrite: true,
})
if err != nil {
log.Fatalf("Failed to download records.json: %v", err)
}
log.Printf("Successfully downloaded to %s", models.RecordsFileName)
}