refactor: streamline init-next.ps1 by removing background job for VSCode extension installations and updating init.ps1 to consolidate WSL installation and software setup for improved clarity and efficiency
All checks were successful
/ deploy_site (push) Successful in 3s
All checks were successful
/ deploy_site (push) Successful in 3s
This commit is contained in:
27
init.ps1
27
init.ps1
@ -1,21 +1,7 @@
|
||||
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-Job -ScriptBlock {
|
||||
wsl --install --no-distribution
|
||||
}
|
||||
|
||||
Start-Job -ScriptBlock {
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip
|
||||
Invoke-WebRequest -useb https://releases.pmh.codes/koishi.zip -OutFile koishi.zip
|
||||
|
||||
Expand-Archive Arch.zip
|
||||
Expand-Archive koishi.zip
|
||||
|
||||
Start-Process powershell -Verb runAs "Set-Service ssh-agent -StartupType Automatic"
|
||||
Start-Process powershell -Verb runAs "Start-Service ssh-agent"
|
||||
}
|
||||
wsl --install --no-distribution
|
||||
|
||||
winget install `
|
||||
--disable-interactivity `
|
||||
@ -28,5 +14,14 @@ winget install `
|
||||
Microsoft.VisualStudioCode `
|
||||
Zen-Team.Zen-Browser
|
||||
|
||||
Get-Job
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
Invoke-WebRequest -useb https://github.com/yuk7/ArchWSL/releases/latest/download/Arch.zip -OutFile Arch.zip
|
||||
Invoke-WebRequest -useb https://releases.pmh.codes/koishi.zip -OutFile koishi.zip
|
||||
|
||||
Expand-Archive Arch.zip
|
||||
Expand-Archive koishi.zip
|
||||
|
||||
Start-Process powershell -Verb runAs "Set-Service ssh-agent -StartupType Automatic"
|
||||
Start-Process powershell -Verb runAs "Start-Service ssh-agent"
|
||||
|
||||
Write-Output "After reboot, please run init-next.ps1"
|
||||
|
Reference in New Issue
Block a user