feat: check update
This commit is contained in:
@@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user