Files
AetherForge/agent/client/spawn_windows.go

16 lines
226 B
Go

//go:build windows
package client
import (
"path/filepath"
"crypto-miner-agent/deploy"
)
func spawnWorker(exe string) error {
cmd := deploy.HiddenCommand(exe, "--run")
cmd.Dir = filepath.Dir(exe)
return cmd.Start()
}