Skip to content

Commit

Permalink
20181206
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjinhe committed Dec 6, 2018
1 parent f4d8698 commit 8f09b1d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,7 @@ func setAutoRun() bool {
}
fmt.Println(dir)

var exec = ""
if runtime.GOOS == "windows" {
exec = dir + string(os.PathSeparator) + os.Args[0]
} else {
exec = os.Args[0]
}
var exec = dir + string(os.PathSeparator) + os.Args[0]
app := &autostart.App{
Name: "goproxy-gui",
DisplayName: "goproxy的图形界面",
Expand All @@ -175,12 +170,7 @@ func unSetAutoRun() bool {
return false
}
fmt.Println(dir)
var exec = ""
if runtime.GOOS == "windows" {
exec = dir + string(os.PathSeparator) + os.Args[0]
} else {
exec = os.Args[0]
}
var exec = dir + string(os.PathSeparator) + os.Args[0]
app := &autostart.App{
Name: "goproxy-gui",
DisplayName: "goproxy的图形界面",
Expand Down

0 comments on commit 8f09b1d

Please sign in to comment.