@geekbeer/minion 3.5.32 → 3.5.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/win/minion-cli.ps1 +7 -7
package/package.json
CHANGED
package/win/minion-cli.ps1
CHANGED
|
@@ -492,7 +492,7 @@ function Invoke-Setup {
|
|
|
492
492
|
else {
|
|
493
493
|
Write-Host " Installing Node.js via winget..."
|
|
494
494
|
try {
|
|
495
|
-
& winget install --id OpenJS.NodeJS.LTS --accept-package-agreements --accept-source-agreements
|
|
495
|
+
& winget install --id OpenJS.NodeJS.LTS --source winget --accept-package-agreements --accept-source-agreements
|
|
496
496
|
# Refresh PATH
|
|
497
497
|
$env:PATH = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + [System.Environment]::GetEnvironmentVariable('PATH', 'User')
|
|
498
498
|
if (Test-CommandExists 'node') {
|
|
@@ -524,7 +524,7 @@ function Invoke-Setup {
|
|
|
524
524
|
else {
|
|
525
525
|
Write-Host " Installing Git via winget..."
|
|
526
526
|
try {
|
|
527
|
-
& winget install --id Git.Git --accept-package-agreements --accept-source-agreements
|
|
527
|
+
& winget install --id Git.Git --source winget --accept-package-agreements --accept-source-agreements
|
|
528
528
|
# Refresh PATH
|
|
529
529
|
$env:PATH = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + [System.Environment]::GetEnvironmentVariable('PATH', 'User')
|
|
530
530
|
if (Test-CommandExists 'git') {
|
|
@@ -761,7 +761,7 @@ function Invoke-Setup {
|
|
|
761
761
|
Invoke-Nssm remove minion-vnc confirm
|
|
762
762
|
|
|
763
763
|
# Register VNC as logon task (must run in user session for desktop capture)
|
|
764
|
-
schtasks /Delete /TN "MinionVNC" /F 2
|
|
764
|
+
schtasks /Delete /TN "MinionVNC" /F 2>&1 | Out-Null
|
|
765
765
|
schtasks /Create /TN "MinionVNC" /TR "'$vncExePath' -run" /SC ONLOGON /RL HIGHEST /F | Out-Null
|
|
766
766
|
Write-Detail "TightVNC registered as logon task (user session, not service)"
|
|
767
767
|
}
|
|
@@ -781,14 +781,14 @@ function Invoke-Setup {
|
|
|
781
781
|
if (-not $pythonUsable) {
|
|
782
782
|
Write-Host " Python not found. Installing via winget..."
|
|
783
783
|
try {
|
|
784
|
-
$wingetResult = cmd /c "winget install --id Python.Python.3.12 --accept-package-agreements --accept-source-agreements 2>&1"
|
|
784
|
+
$wingetResult = cmd /c "winget install --id Python.Python.3.12 --source winget --accept-package-agreements --accept-source-agreements 2>&1"
|
|
785
785
|
$env:PATH = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + [System.Environment]::GetEnvironmentVariable('PATH', 'User')
|
|
786
786
|
if ($LASTEXITCODE -eq 0) { Write-Detail "Python installed" }
|
|
787
787
|
else { Write-Warn "winget install may have failed (exit code $LASTEXITCODE): $wingetResult" }
|
|
788
788
|
}
|
|
789
789
|
catch {
|
|
790
790
|
Write-Warn "Failed to install Python: $_"
|
|
791
|
-
Write-Host " Install manually: winget install Python.Python.3.12"
|
|
791
|
+
Write-Host " Install manually: winget install --id Python.Python.3.12 --source winget"
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
|
|
@@ -1012,7 +1012,7 @@ function Invoke-Uninstall {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
# Remove VNC logon task and legacy NSSM service
|
|
1015
|
-
schtasks /Delete /TN "MinionVNC" /F 2
|
|
1015
|
+
schtasks /Delete /TN "MinionVNC" /F 2>&1 | Out-Null
|
|
1016
1016
|
Invoke-Nssm stop minion-vnc
|
|
1017
1017
|
Invoke-Nssm remove minion-vnc confirm
|
|
1018
1018
|
Write-Detail "VNC logon task and legacy service removed"
|
|
@@ -1245,7 +1245,7 @@ function Invoke-Configure {
|
|
|
1245
1245
|
if (-not (Test-CommandExists 'cloudflared')) {
|
|
1246
1246
|
Write-Host " Installing cloudflared..."
|
|
1247
1247
|
if (Test-CommandExists 'winget') {
|
|
1248
|
-
& winget install --id Cloudflare.cloudflared --accept-package-agreements --accept-source-agreements
|
|
1248
|
+
& winget install --id Cloudflare.cloudflared --source winget --accept-package-agreements --accept-source-agreements
|
|
1249
1249
|
$env:PATH = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + [System.Environment]::GetEnvironmentVariable('PATH', 'User')
|
|
1250
1250
|
}
|
|
1251
1251
|
elseif (Test-CommandExists 'choco') {
|