diff --git a/fclauncher/app.go b/fclauncher/app.go index 5b29450..b7d996e 100644 --- a/fclauncher/app.go +++ b/fclauncher/app.go @@ -131,12 +131,8 @@ func (a *App) CheckPrerequisites() { return } } - err = os.Remove(filepath.Join(dir, "FCLauncher", "authentication.json")) - if err != nil { - fmt.Printf("Unable to delete auth file\n") - } os.MkdirAll(filepath.Join(dir, "FCLauncher"), 0755) - f, _ := os.OpenFile(filepath.Join(dir, "FCLauncher", "authentication.json"), os.O_CREATE|os.O_RDWR, 0755) + f, _ := os.OpenFile(filepath.Join(dir, "FCLauncher", "authentication.json"), os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0755) defer f.Close() data, _ := json.Marshal(a.Auth) f.Write(data) diff --git a/fclauncher/frontend/package.json.md5 b/fclauncher/frontend/package.json.md5 index 20dd88f..b063894 100755 --- a/fclauncher/frontend/package.json.md5 +++ b/fclauncher/frontend/package.json.md5 @@ -1 +1 @@ -48cb20b8d107dab0a7876a449352234a \ No newline at end of file +ad9da3c17151b053a4d2fda8e3578901 \ No newline at end of file