mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 05:30:46 +08:00
Add Explorer .cmd launchers and always-on desktop First-time setup shortcuts.
Server 2012 Start Menu often hides PowerShell .lnk entries; .cmd targets are visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
41ab4921a0
commit
ca97a2a597
8 changed files with 48 additions and 13 deletions
|
|
@ -157,6 +157,15 @@ $builtAt = (Get-Date).ToUniversalTime().ToString("o")
|
|||
|
||||
Set-Content -Path (Join-Path $stage ".portable") -Value "1" -Encoding ascii
|
||||
|
||||
# Root .cmd launchers (Explorer / Start Menu friendly; ASCII-only).
|
||||
$cmdSrc = Join-Path $PSScriptRoot "cmd"
|
||||
foreach ($cmdName in @("NetX-FirstRun.cmd", "NetX-Start.cmd", "NetX-Tray.cmd")) {
|
||||
$c = Join-Path $cmdSrc $cmdName
|
||||
if (Test-Path $c) {
|
||||
Copy-Item -Path $c -Destination (Join-Path $stage $cmdName) -Force
|
||||
}
|
||||
}
|
||||
|
||||
if ($CreateVenv) {
|
||||
Write-Host "==> Creating .venv in stage (requires Python 3.11+ on PATH)"
|
||||
$py = (Get-Command python -ErrorAction SilentlyContinue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue