Studio.ps1
function Install-Studio { Install-Scoop openjdk22 -Bucket "java" Install-Scoop android-studio -Bucket "extras" #Install-Scoop android-clt #Install-Scoop flutter # TODO $studio = Join-Path $env:USERPROFILE "scoop/apps/android-studio/current/bin/studio64.exe" ## Desktop icon $icon = "$([Environment]::GetFolderPath("Desktop"))\Studio.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 Studio shortcut on Desktop" } } |