Redesign UI like Driver Navigator + fix CMD window

UI changes:
- Top title bar with logo, app name, and system status LED
- Toolbar with 4 icon tabs: Scan, Drivers, Download, System
- Scan page with computer SVG illustration, stats, and big SCAN NOW button
- Step indicator bar: Scan Devices > Review Drivers > Install Updates
- Driver list with per-row progress bars, Download + Install buttons
- "Update All Drivers" CTA bar at bottom when outdated drivers found
- Windows Update tab with pending/installed sections
- System Info tab with resource bars
- Footer with About/Help buttons

Backend fixes:
- Add cmdutil.HiddenCommand() using CREATE_NO_WINDOW (0x08000000)
- All PowerShell subprocesses now run without visible console window
- Build with -ldflags "-H windowsgui" to hide main CMD window

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
taqin
2026-04-12 20:54:41 +07:00
parent 472b5b3273
commit 83d7a24d1a
7 changed files with 922 additions and 1386 deletions

View File

@@ -2,8 +2,9 @@ package winupdate
import (
"encoding/json"
"os/exec"
"time"
"github.com/mumur/driver-booster/internal/cmdutil"
)
type Update struct {
@@ -101,7 +102,7 @@ try {
Pending = $pending
} | ConvertTo-Json -Depth 3 -Compress
`
out, err := exec.Command("powershell", "-NoProfile", "-Command", psScript).Output()
out, err := cmdutil.HiddenCommand("powershell", "-NoProfile", "-Command", psScript).Output()
if err != nil {
result.Error = "Failed to check updates: " + err.Error()
result.CheckTime = time.Since(start).Round(time.Millisecond).String()
@@ -193,7 +194,7 @@ if ($ToInstall.Count -gt 0) {
Write-Output "No updates to install."
}
`
out, err := exec.Command("powershell", "-NoProfile", "-Command", psScript).Output()
out, err := cmdutil.HiddenCommand("powershell", "-NoProfile", "-Command", psScript).Output()
if err != nil {
return InstallResult{
Success: false,