Skip to content

Commit

Permalink
update winget dev box setup script (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
carfesh authored Jul 10, 2024
1 parent 7bc617d commit e346d1b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
10 changes: 0 additions & 10 deletions fellow/SRC/build/Scripts/WinFellow-DevEnvironment-winget.bat

This file was deleted.

30 changes: 30 additions & 0 deletions fellow/SRC/build/Scripts/WinFellow-DevEnvironment-winget.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
winget install Microsoft.VisualStudio.2022.Community --silent --accept-package-agreements --override "--wait --quiet --add ProductLang En-us --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.Windows11SDK.22000 --includeRecommended"
winget install Microsoft.VisualStudio.Locator --silent --accept-package-agreements
winget install JanDeDobbeleer.OhMyPosh --silent --accept-package-agreements
winget install NSIS.NSIS --silent --accept-package-agreements
winget install 7zip.7zip --silent --accept-package-agreements
winget install MiKTeX.MiKTeX --silent --accept-package-agreements
winget install LyX.LyX --silent --accept-package-agreements
winget install DimitriVanHeesch.Doxygen --silent --accept-package-agreements
winget install Graphviz.Graphviz --silent --accept-package-agreements
# winget install ArtifexSoftware.GhostScript --silent --accept-package-agreements

winget install Hugo.Hugo --silent --accept-package-agreements
winget install GoLang.Go --silent --accept-package-agreements

# add tools required for unattended builds to path variable
$LyxPath = Resolve-Path "${env:ProgramFiles(x86)}\LyX*\bin"
If([string]::IsNullOrEmpty($LyXPath)) { $LyxPath = Resolve-Path "${env:ProgramFiles}\LyX*\bin" }
$7ZipPath = "${env:ProgramFiles}\7-Zip"
$NSISPath = Resolve-Path "${env:ProgramFiles(x86)}\NSIS"
If([string]::IsNullOrEmpty($NSISPath)) { $NSISPath = Resolve-Path "${env:ProgramFiles}\NSIS" }

[Environment]::SetEnvironmentVariable("Path", "$env:Path;$LyXPath;$7ZipPath;$NSISPath", [System.EnvironmentVariableTarget]::Machine)

# refresh path variable
# $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")

# check for MiKTeX updates
miktex --admin packages update
# the following requires UAC prompts to be confirmed to install missing packages on the first compile, so maybe user-based installation makes more sense?
initexmf --admin --set-config-value=[MPM]AutoInstall=t
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Accept/confirm all prompts and wait for the packages to install.

cd into the WinFellow source code directory and find the doxygen subdirectory.

Execute `Build-Doxygen-Documentation.sh`
Execute `Build-Doxygen-Documentation.sh` (make sure that the file has proper UNIX line endings first)

# doxygen setup using Windows

Expand Down

0 comments on commit e346d1b

Please sign in to comment.