mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
add chocolatey installation module
This commit is contained in:
parent
3a849a448f
commit
d95ba9823d
@ -1,9 +1,11 @@
|
|||||||
|
Import-Module ./util/chocolatey.psm1
|
||||||
Import-Module ./util/windows.psm1
|
Import-Module ./util/windows.psm1
|
||||||
Import-Module ./util/winget.psm1
|
Import-Module ./util/winget.psm1
|
||||||
|
|
||||||
|
|
||||||
# (Optionally) Install required Software
|
# (Optionally) Install required Software
|
||||||
InstallWinget
|
InstallWinget
|
||||||
|
InstallChocolatey
|
||||||
|
|
||||||
# Define paths for tools and configurations
|
# Define paths for tools and configurations
|
||||||
$dotfilesRepo = "$env:TMP\dotfiles"
|
$dotfilesRepo = "$env:TMP\dotfiles"
|
||||||
|
10
util/chocolatey.list
Normal file
10
util/chocolatey.list
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
neovim
|
||||||
|
ripgrep
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
fd
|
||||||
|
unzip
|
||||||
|
gzip
|
||||||
|
mingw
|
||||||
|
make
|
||||||
|
composer
|
16
util/chocolatey.psm1
Normal file
16
util/chocolatey.psm1
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
function InstallPackages
|
||||||
|
{
|
||||||
|
choco.exe install (Get-Content ./util/chocolatey.list)
|
||||||
|
}
|
||||||
|
|
||||||
|
function ChocolateyInstall
|
||||||
|
{
|
||||||
|
$install = Read-Host "Install as Administrator now? [Y/n]"
|
||||||
|
if ($install.ToLower() -eq 'n')
|
||||||
|
{ return
|
||||||
|
}
|
||||||
|
|
||||||
|
# Start admin process, import this script, run 'InstallPackages' function
|
||||||
|
Start-Process powershell.exe -Verb RunAs `
|
||||||
|
-ArgumentList "-C", "'Import-Module ./util/chocolatey.psm1; InstallPackages'"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user