mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:48:12 +09:00
28 lines
611 B
PowerShell
28 lines
611 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
Push-Location $PSScriptRoot
|
|
|
|
try {
|
|
scoop update
|
|
scoop import .\Scoopfile.json
|
|
scoop update *
|
|
|
|
dsc config set --file .\configuration.dsc.yaml
|
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
throw "Failed to apply the main DSC configuration."
|
|
}
|
|
|
|
& .\applications\chatgpt\apply.ps1
|
|
& .\applications\git\apply.ps1
|
|
& .\applications\vscode\apply.ps1
|
|
& .\system\advanced-settings\apply.ps1
|
|
& .\system\lock-screen\apply.ps1
|
|
& .\system\power\apply.ps1
|
|
& .\system\privacy\apply.ps1
|
|
& .\system\wallpaper\apply.ps1
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|