change exe name

This commit is contained in:
armv9
2024-07-05 11:16:05 +09:00
parent be0eae662b
commit 6f81ba7773
20 changed files with 47 additions and 64 deletions

View File

@@ -17,7 +17,7 @@ func Launcher() {
_debug := flag.Bool("debug", false, "Debug mode")
flag.Parse()
cmd := exec.Command("./nekoray", flag.Args()...)
cmd := exec.Command("./nekobox", flag.Args()...)
ld_env := "LD_LIBRARY_PATH=" + filepath.Join(wd, "./usr/lib")
qt_plugin_env := "QT_PLUGIN_PATH=" + filepath.Join(wd, "./usr/plugins")

View File

@@ -30,9 +30,9 @@ func main() {
time.Sleep(time.Second)
Updater()
// 3. start
exec.Command("./nekoray.exe").Start()
exec.Command("./nekobox.exe").Start()
} else {
// 1. nekoray stop it self and run "updater.exe"
// 1. main prog quit and run "updater.exe"
Copy("./updater.exe", "./updater.old")
exec.Command("./updater.old", os.Args[1:]...).Start()
}
@@ -43,7 +43,7 @@ func main() {
if os.Getenv("NKR_FROM_LAUNCHER") == "1" {
Launcher()
} else {
exec.Command("./nekoray").Start()
exec.Command("./nekobox").Start()
}
}
return

View File

@@ -71,6 +71,11 @@ func Updater() {
os.RemoveAll("./nekoray_update")
os.RemoveAll("./nekoray.zip")
os.RemoveAll("./nekoray.tar.gz")
// nekoray -> nekobox
os.Remove("./nekoray.exe")
os.Remove("./nekoray.png")
os.Remove("./nekoray_core.exe")
}
func Exist(path string) bool {