runner
This commit is contained in:
parent
070dcfaffe
commit
1ecc503f12
2 changed files with 27 additions and 0 deletions
|
@ -6,6 +6,14 @@
|
|||
|
||||
- Télécharger et lancer [windows11.bat](./windows11.bat)
|
||||
|
||||
### Mise à jour de certains programmes
|
||||
|
||||
```batch
|
||||
curl.exe "https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/runner.ps1" | PowerShell -Command -Script "script"
|
||||
```
|
||||
|
||||
Avec le paramètre `script` le programme à (ré-)installer
|
||||
|
||||
## WSL (Arch)
|
||||
|
||||
Tout d'abord, installer [ArchWSL](https://github.com/yuk7/ArchWSL/releases)
|
||||
|
|
19
windows/installers/runner.ps1
Normal file
19
windows/installers/runner.ps1
Normal file
|
@ -0,0 +1,19 @@
|
|||
param (
|
||||
[string]$script
|
||||
)
|
||||
|
||||
if (-not $script) {
|
||||
Write-Host "No script found"
|
||||
exit
|
||||
}
|
||||
|
||||
$fileName = "$script.bat"
|
||||
$url = "https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/$fileName"
|
||||
$filePath = Join-Path -Path $env:TEMP -ChildPath $fileName
|
||||
|
||||
Invoke-WebRequest -Uri $url -OutFile $filePath
|
||||
& $filePath
|
||||
|
||||
Remove-Item -Path $filePath
|
||||
|
||||
exit
|
Loading…
Reference in a new issue