mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-03 20:27:31 +00:00
chore: hello mihomo
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const Name = "clash"
|
||||
const Name = "mihomo"
|
||||
|
||||
var (
|
||||
GeositeName = "GeoSite.dat"
|
||||
@@ -19,8 +19,8 @@ var (
|
||||
|
||||
// Path is used to get the configuration path
|
||||
//
|
||||
// on Unix systems, `$HOME/.config/clash`.
|
||||
// on Windows, `%USERPROFILE%/.config/clash`.
|
||||
// on Unix systems, `$HOME/.config/mihomo`.
|
||||
// on Windows, `%USERPROFILE%/.config/mihomo`.
|
||||
var Path = func() *path {
|
||||
homeDir, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
@@ -165,7 +165,7 @@ func (p *path) GetAssetLocation(file string) string {
|
||||
func (p *path) GetExecutableFullPath() string {
|
||||
exePath, err := os.Executable()
|
||||
if err != nil {
|
||||
return "clash"
|
||||
return "mihomo"
|
||||
}
|
||||
res, _ := filepath.EvalSymlinks(exePath)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user