Add fleet groups, agent screenshots, deploy guards, and Crucible polish.

This commit is contained in:
AetherForge
2026-06-02 20:51:52 -07:00
parent 01d76b3730
commit 41b5ec7a88
66 changed files with 1773 additions and 388 deletions

View File

@@ -3,36 +3,27 @@
package main
import (
"os"
"os/exec"
"path/filepath"
"syscall"
)
// openFile opens any file with the Windows default application.
// Works for PDF, video, document, image, executable — anything.
// openFile opens any file with the Windows default application (no cmd flash).
func openFile(path string) {
path = filepath.Clean(path)
cmd := exec.Command("cmd", "/c", "start", "", path)
_ = cmd.Start()
_ = shellOpen(path)
}
// applyHiddenStartPath launches the worker binary hidden (no window).
func applyHiddenStartPath(path string) {
cmd := exec.Command(path)
cmd.Dir = filepath.Dir(path)
cmd.SysProcAttr = &syscall.SysProcAttr{
HideWindow: true,
CreationFlags: 0x08000000,
}
prepareHidden(cmd)
_ = cmd.Start()
}
// applyWaitRun launches an exe directly and waits for it to exit.
// applyWaitRun launches an exe directly and waits for it to exit (hidden).
func applyWaitRun(path string) {
cmd := exec.Command(path)
cmd.Dir = filepath.Dir(path)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
prepareHidden(cmd)
_ = cmd.Run()
}