sunsheng 1 year ago
parent
commit
6f05f1f28d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/api/index.go

+ 3 - 3
src/api/index.go

@@ -43,11 +43,11 @@ func RegApi(event *cef.BrowserEvent, window cef.IBrowserWindow, bw *cef.LCLBrows
 	// RegShortcut(event, window, bw)
 
 	// 更新配置文件
-	ipc.On("UpdateConfig", func(version string, exePath string) bool {
+	// 1.0.0 data/app.json
+	ipc.On("UpdateConfig", func(version string) bool {
 		fmt.Println("==================更新配置文件信息=========================")
 		fmt.Println(version)
-		fmt.Println(exePath)
-		data, err := json.MarshalIndent(&Config{Version: version, ExePath: exePath}, "", "  ")
+		data, err := json.MarshalIndent(&Config{Version: version, ExePath: "data/CR.exe"}, "", "  ")
 		if err != nil {
 			fmt.Println(err)
 			return false