This commit is contained in:
josc146 2023-06-06 21:52:38 +08:00
parent cfad67a922
commit 4814b88172
2 changed files with 3 additions and 6 deletions

View File

@ -17,11 +17,8 @@ import (
func Cmd(args ...string) (string, error) {
switch platform := runtime.GOOS; platform {
case "windows":
_, err := os.Stat("cmd-helper.bat")
if err != nil {
if err := os.WriteFile("./cmd-helper.bat", []byte("start %*"), 0644); err != nil {
return "", err
}
if err := os.WriteFile("./cmd-helper.bat", []byte("start /wait %*"), 0644); err != nil {
return "", err
}
cmdHelper, err := filepath.Abs("./cmd-helper")
if err != nil {

View File

@ -248,7 +248,7 @@ export async function checkUpdate(notifyEvenLatest: boolean = false) {
toast(t('Downloading update, please wait. If it is not completed, please manually download the program from GitHub and replace the original program.'), {
type: 'info',
position: 'bottom-left',
autoClose: 10000
autoClose: 20000
});
setTimeout(() => {
UpdateApp(updateUrl).catch((e) => {