-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
42 lines (30 loc) · 893 Bytes
/
Copy pathinstall.ps1
File metadata and controls
42 lines (30 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#Requires -RunAsAdministrator
param(
[switch]$Debug
)
if ($Debug.IsPresent) {
$DebugPreference = "Continue"
}
$Root = $PSScriptRoot
$ModulesDir = Join-Path $Root "lib\windows"
$ModuleFiles = @(
"Constants.psm1"
"Core.psm1"
"Fs.psm1"
"Log.psm1"
"Utils.psm1"
)
foreach ($Module in $ModuleFiles) {
$Path = Join-Path $ModulesDir $Module
Write-Debug "Importing module: $Path"
Import-Module $Path -Force -Verbose:$Debug.IsPresent
}
Write-Info "Starting Windows setup"
Write-Info "Installing packages [WINGET]"
Invoke-PowershellScript $SETUP\winget.ps1
Write-Info "Creating symlinks for configuration files"
Invoke-PowershellScript $SETUP\symlinks.ps1
Write-Info "Applying OS specific configurations"
Invoke-PowershellScript $SETUP\os.ps1
Write-Success "Windows setup completed successfully"
Write-Success "You may need to restart your computer for all changes to take effect."