feat: check update

This commit is contained in:
2024-07-16 10:21:51 +08:00
parent 49da9100d2
commit b7d64cba7b
13 changed files with 693 additions and 4 deletions
+6 -2
View File
@@ -23,7 +23,10 @@ func main() {
userHomeDir, _ := os.UserHomeDir()
dbFileName := "mac_vendors.sqlite3"
dbFilePath := filepath.Join(userHomeDir, dbFileDir, dbFileName)
service := service.NewSQLiteHelper(dbFilePath)
dbService := service.NewSQLiteHelper(dbFilePath)
// create update service
updateService := service.NewUpdateService("https://tools.taurusxin.com/macfastlookup/latest_version.txt")
// Create application with options
err := wails.Run(&options.App{
@@ -37,7 +40,8 @@ func main() {
OnStartup: app.startup,
Bind: []interface{}{
app,
service,
dbService,
updateService,
},
})