chore
This commit is contained in:
parent
cfad67a922
commit
4814b88172
@ -17,11 +17,8 @@ import (
|
|||||||
func Cmd(args ...string) (string, error) {
|
func Cmd(args ...string) (string, error) {
|
||||||
switch platform := runtime.GOOS; platform {
|
switch platform := runtime.GOOS; platform {
|
||||||
case "windows":
|
case "windows":
|
||||||
_, err := os.Stat("cmd-helper.bat")
|
if err := os.WriteFile("./cmd-helper.bat", []byte("start /wait %*"), 0644); err != nil {
|
||||||
if err != nil {
|
return "", err
|
||||||
if err := os.WriteFile("./cmd-helper.bat", []byte("start %*"), 0644); err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
cmdHelper, err := filepath.Abs("./cmd-helper")
|
cmdHelper, err := filepath.Abs("./cmd-helper")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -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.'), {
|
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',
|
type: 'info',
|
||||||
position: 'bottom-left',
|
position: 'bottom-left',
|
||||||
autoClose: 10000
|
autoClose: 20000
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
UpdateApp(updateUrl).catch((e) => {
|
UpdateApp(updateUrl).catch((e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user