|
@@ -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
|