finished: check update

This commit is contained in:
2024-07-23 16:32:49 +08:00
parent b7d64cba7b
commit e0dbd03397
16 changed files with 511 additions and 37 deletions
+1 -7
View File
@@ -3,8 +3,6 @@ package main
import (
"MacFastLookup/service"
"embed"
"os"
"path/filepath"
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
@@ -19,11 +17,7 @@ func main() {
app := NewApp()
// Create service
dbFileDir := "MacFastLookup"
userHomeDir, _ := os.UserHomeDir()
dbFileName := "mac_vendors.sqlite3"
dbFilePath := filepath.Join(userHomeDir, dbFileDir, dbFileName)
dbService := service.NewSQLiteHelper(dbFilePath)
dbService := service.NewSQLiteHelper()
// create update service
updateService := service.NewUpdateService("https://tools.taurusxin.com/macfastlookup/latest_version.txt")