refactor: streamline init.ps1 by removing WSL installation and consolidating software installation commands into a background job for improved clarity and efficiency
All checks were successful
/ deploy_site (push) Successful in 4s
All checks were successful
/ deploy_site (push) Successful in 4s
This commit is contained in:
6
init.ps1
6
init.ps1
@ -2,9 +2,6 @@ Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
|
|||||||
Start-Process powershell -Verb runAs "Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0"
|
Start-Process powershell -Verb runAs "Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0"
|
||||||
|
|
||||||
Start-Job -ScriptBlock {
|
Start-Job -ScriptBlock {
|
||||||
wsl --install --no-distribution
|
|
||||||
}
|
|
||||||
|
|
||||||
winget install `
|
winget install `
|
||||||
--disable-interactivity `
|
--disable-interactivity `
|
||||||
--accept-source-agreements `
|
--accept-source-agreements `
|
||||||
@ -14,6 +11,9 @@ winget install `
|
|||||||
Microsoft.WindowsTerminal `
|
Microsoft.WindowsTerminal `
|
||||||
Microsoft.VisualStudioCode `
|
Microsoft.VisualStudioCode `
|
||||||
Zen-Team.Zen-Browser
|
Zen-Team.Zen-Browser
|
||||||
|
}
|
||||||
|
|
||||||
|
wsl --install --no-distribution
|
||||||
|
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip
|
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip
|
||||||
|
Reference in New Issue
Block a user