mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-21 12:04:44 +08:00
Enhanced run_comfyui.bat with: - Automatic detection of missing critical dependencies - Virtual environment detection and warnings - Optional user-prompted installation with clear warnings - Comprehensive dependency checking for all essential packages NOTE: Author is not a professional coder and relied heavily on Cursor AI for implementation. Please review code thoroughly before merging.
11 lines
434 B
PowerShell
11 lines
434 B
PowerShell
$WshShell = New-Object -ComObject WScript.Shell
|
|
$DesktopPath = [Environment]::GetFolderPath('Desktop')
|
|
$ShortcutPath = Join-Path $DesktopPath "ComfyUI.lnk"
|
|
$Shortcut = $WshShell.CreateShortcut($ShortcutPath)
|
|
$Shortcut.TargetPath = "C:\Repos\ComfyUI\run_comfyui.bat"
|
|
$Shortcut.WorkingDirectory = "C:\Repos\ComfyUI"
|
|
$Shortcut.Description = "Run ComfyUI from repository"
|
|
$Shortcut.Save()
|
|
Write-Host "Shortcut created at: $ShortcutPath"
|
|
|