x
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
_ "github.com/cdle/sillyplus/adapters/qq"
|
||||
@@ -19,7 +18,6 @@ import (
|
||||
var sillyplus = core.MakeBucket("sillyplus")
|
||||
|
||||
func main() {
|
||||
|
||||
loc, _ := time.LoadLocation("Asia/Shanghai")
|
||||
time.Local = loc
|
||||
core.Init()
|
||||
@@ -31,19 +29,6 @@ func main() {
|
||||
if arg == "-d" {
|
||||
d = true
|
||||
}
|
||||
if arg == "-r" { //准备程序->原程序
|
||||
rfix := ".ready.exe"
|
||||
ofix := ".exe"
|
||||
if strings.Contains(os.Args[0], rfix) {
|
||||
err := utils.CopyFile(utils.ProcessName, strings.Replace(utils.ProcessName, rfix, ofix, -1))
|
||||
if err == nil {
|
||||
utils.Daemon("reset")
|
||||
}
|
||||
} else {
|
||||
os.Remove(strings.ReplaceAll(os.Args[0], ofix, rfix))
|
||||
}
|
||||
continue
|
||||
}
|
||||
}
|
||||
go func() { //弹出浏览器
|
||||
if runtime.GOOS != "windows" {
|
||||
|
||||
Reference in New Issue
Block a user