Skip to content

Commit

Permalink
improve power-shell output
Browse files Browse the repository at this point in the history
  • Loading branch information
gpproton committed Jul 15, 2023
1 parent 4f3055f commit 8c0cc4c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 18 deletions.
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"recommendations": [
"redhat.vscode-yaml",
"ms-vscode-remote.remote-wsl",
"redhat.vscode-xml",
"wayou.vscode-todo-highlight",
"foxundermoon.shell-format"
]
}
6 changes: 3 additions & 3 deletions windows/dev-tool-setup.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo "Installing Mozilla Firefox Developer Edition"
Write-Output "Installing Mozilla Firefox Developer Edition"
winget install --id=Mozilla.Firefox.DeveloperEdition -e
echo "Installing Github Packages"
Write-Output "Installing Github Packages"
winget install --id=Git.Git -e ; winget install --id=GitHub.cli -e ; winget install --id=GitHub.GitHubDesktop -e
echo "Installing Extra package"
Write-Output "Installing Extra package"
winget install --id=Microsoft.WindowsTerminal -e
2 changes: 1 addition & 1 deletion windows/docker-setup.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
echo "Installing Docker Desktop"
Write-Output "Installing Docker Desktop"
winget install docker
4 changes: 2 additions & 2 deletions windows/essential-setup.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
echo "Setup permission elevation package"
Write-Output "Setup permission elevation package"
winget install --id=gsudo gerardog.gsudo -e
echo "Installing Notepad Plus Plus"
Write-Output "Installing Notepad Plus Plus"
winget install --id=Notepad++.Notepad++ -e
6 changes: 3 additions & 3 deletions windows/ide-setup.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo "Installing VsCode"
Write-Output "Installing VsCode"
winget install vscode
echo "Installing Microsoft Visual Studio 2022"
Write-Output "Installing Microsoft Visual Studio 2022"
winget install --id=Microsoft.VisualStudio.2022.Community-Preview -e
echo "Installing Dev frameworks.."
Write-Output "Installing Dev frameworks.."
winget install --id= Microsoft.DotNet.SDK.7 -e winget install --id=Microsoft.DotNet.SDK.Preview -e ; winget install --id=OpenJS.NodeJS.LTS -e
13 changes: 7 additions & 6 deletions windows/winget-setup.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## Winget stup for windows
if ((Get-ComputerInfo | Select-Object -expand OsName) -match 10) {
echo "Starting Winget setup"
Invoke-WebRequest https://github.com/microsoft/winget-cli/releases/download/v1.6.1573-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile ./winget.msixbundle
Add-AppPackage -path ./winget.msixbundle
Remove-Item ./winget.msixbundle
} else {
Install-Module -Name Microsoft.WinGet.Client -Force -AllowPrerelease -AcceptLicense
Write-Output "Starting Winget setup"
Invoke-WebRequest https://github.com/microsoft/winget-cli/releases/download/v1.6.1573-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile ./winget.msixbundle
Add-AppPackage -path ./winget.msixbundle
Remove-Item ./winget.msixbundle
}
else {
Install-Module -Name Microsoft.WinGet.Client -Force -AllowPrerelease -AcceptLicense
}
6 changes: 3 additions & 3 deletions windows/wsl-setup.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
echo "Setting up Windows Linux SubSystem..."
Write-Output "Setting up Windows Linux SubSystem..."
Enable-WindowsOptionalFeature -Online -FeatureName 'Microsoft-Windows-Subsystem-Linux' -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName 'VirtualMachinePlatform' -All -NoRestart
wsl --update
wsl --set-default-version 2

Invoke-WebRequest https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi -OutFile ./wsl-kernel.msi
echo "Starting WSL kernel installation..."
Write-Output "Starting WSL kernel installation..."
Start-Process ./wsl-kernel.msi -ArgumentList "/quiet /passive"
Remove-Item ./wsl-kernel.msi

echo "Installing Ubuntu image.."
Write-Output "Installing Ubuntu image.."
wsl --install Ubuntu

0 comments on commit 8c0cc4c

Please sign in to comment.