diff --git a/base.ps1 b/base.ps1 index a2870b6..9cdb393 100644 --- a/base.ps1 +++ b/base.ps1 @@ -248,17 +248,15 @@ if(-not $isAdmin) { } $installs=@( - 'chocolatey', + 'Geany.Geany', 'Git.Git', 'Genivia.ugrep', 'Microsoft.WindowsTerminal', - 'AntibodySoftware.WizFile', 'Kitware.CMake', - 'Microsoft.VCRedist.2015+.x64', 'Microsoft.VCRedist.2015+.x64' ) -$choco_installs=@('geany','geany-plugins','winlibs') +$choco_installs=@() Write-Warning "About to install the following software:" Write-Warning "-----------------------------------------" @@ -273,6 +271,13 @@ foreach($pkg in $installs) { Start-Process -NoNewWindow -Wait winget -ArgumentList 'install',$pkg } -Start-Process -Verb RunAs -Wait powershell -argumentlist 'C:\ProgramData\chocolatey\bin\choco.exe','install','geany','geany-plugins','winlibs' +Write-Warning "!! Installing WinLibs in $env:HOMEPATH\WinLibs" +Write-Warning "This has to be installed this way because winget won't add it to the path so I have to do it manually. If you don't want this, then hit CTRL-C and install WinLibs yourself." +Read-Host -Prompt "Press any key to continue, or CTRL-C to abort" | Out-Null + +winget install --location "$env:HOMEPATH\WinLibs" -e BrechtSanders.WinLibs.POSIX.UCRT.LLVM + +$newPath = $Env:PATH + ";$env:HOMEPATH\WinLibs\mingw64\bin" +[Environment]::SetEnvironmentVariable("Path", $newPath, "User") Write-Warning "!!! CLOSE THIS POWERSHELL AND START A NEW ONE TO UPDATE PATH!" diff --git a/cpp.ps1 b/cpp.ps1 index 3255cee..00c955c 100644 --- a/cpp.ps1 +++ b/cpp.ps1 @@ -113,5 +113,6 @@ function ConfirmBaseRun { ConfirmBaseRun Start-Process -NoNewWindow -Wait winget -ArgumentList 'install','ezwinports.make' +Start-Process -NoNewWindow -Wait winget -ArgumentList 'install','mesonbuild.meson' +Start-Process -NoNewWindow -Wait winget -ArgumentList 'install','Kitware.CMake' -Start-Process -Verb RunAs -Wait powershell -argumentlist 'C:\ProgramData\chocolatey\bin\choco.exe','install','winlibs','conan','meson' diff --git a/extras.ps1 b/extras.ps1 index dad4e11..fd29cc9 100644 --- a/extras.ps1 +++ b/extras.ps1 @@ -113,6 +113,7 @@ function ConfirmBaseRun { ConfirmBaseRun $extras=@( + 'AntibodySoftware.WizFile', 'GnuWin32.Which', 'GNU.Wget2', 'GNU.Nano',