Skip to content

Commit

Permalink
import initial powershell setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gpproton committed Jul 15, 2023
1 parent 685c172 commit 4f3055f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions windows/dev-tool-setup.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo "Installing Mozilla Firefox Developer Edition"
winget install --id=Mozilla.Firefox.DeveloperEdition -e
echo "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"
winget install --id=Microsoft.WindowsTerminal -e
2 changes: 2 additions & 0 deletions windows/docker-setup.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo "Installing Docker Desktop"
winget install docker
4 changes: 4 additions & 0 deletions windows/essential-setup.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
echo "Setup permission elevation package"
winget install --id=gsudo gerardog.gsudo -e
echo "Installing Notepad Plus Plus"
winget install --id=Notepad++.Notepad++ -e
6 changes: 6 additions & 0 deletions windows/ide-setup.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo "Installing VsCode"
winget install vscode
echo "Installing Microsoft Visual Studio 2022"
winget install --id=Microsoft.VisualStudio.2022.Community-Preview -e
echo "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
9 changes: 9 additions & 0 deletions windows/winget-setup.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## 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
}
13 changes: 13 additions & 0 deletions windows/wsl-setup.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
echo "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..."
Start-Process ./wsl-kernel.msi -ArgumentList "/quiet /passive"
Remove-Item ./wsl-kernel.msi

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

0 comments on commit 4f3055f

Please sign in to comment.