x
This commit is contained in:
@@ -27,14 +27,20 @@ func main() {
|
|||||||
if arg == "-d" {
|
if arg == "-d" {
|
||||||
d = true
|
d = true
|
||||||
}
|
}
|
||||||
if arg == "-r" && strings.Contains(os.Args[0], ".ready.exe") { //准备程序->原程序
|
if arg == "-r" { //准备程序->原程序
|
||||||
err := utils.CopyFile(utils.ProcessName, strings.Replace(utils.ProcessName, "ready.exe", ".exe", -1))
|
rfix := ".ready.exe"
|
||||||
if err == nil {
|
if strings.Contains(os.Args[0], rfix) {
|
||||||
utils.Daemon("reset")
|
err := utils.CopyFile(utils.ProcessName, strings.Replace(utils.ProcessName, rfix, ".exe", -1))
|
||||||
|
if err == nil {
|
||||||
|
utils.Daemon("reset")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
os.Remove(strings.ReplaceAll(os.Args[0], ".exe", rfix))
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !d {
|
if !d {
|
||||||
t := false
|
t := false
|
||||||
for _, arg := range os.Args {
|
for _, arg := range os.Args {
|
||||||
|
|||||||
Reference in New Issue
Block a user