Idea.ps1
function Install-Idea { # Groovy still not supports java22 Install-Scoop openjdk21 -Bucket "java" Install-Scoop idea -Bucket "extras" $studio = Join-Path $env:USERPROFILE "scoop/apps/idea/current/IDE/bin/idea64.exe" ## Desktop icon $icon = "$([Environment]::GetFolderPath("Desktop"))\IDEA.lnk" if (-Not(Test-Path -Path $icon -PathType leaf -ErrorAction SilentlyContinue)) { $wshShell = New-Object -comObject WScript.Shell $shortcut = $wshShell.CreateShortcut($icon) $shortcut.TargetPath = $studio $shortcut.Save() Write-Host "Added IDEA shortcut on Desktop" } } |