Use 'Get-ToolsLocation' to determine prefix
This commit is contained in:
parent
f5b89e3b07
commit
16b0117603
2 changed files with 6 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
||||||
C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c 'pacman -S --needed --noconfirm pactoys'
|
C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c 'pacman -S --needed --noconfirm pactoys'
|
||||||
C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c 'pacboy -Sy --needed --noconfirm binutils:x make:x gcc:x gettext:x readline:x'
|
C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 /bin/bash -l -c 'pacboy -Sy --needed --noconfirm binutils:x make:x gcc:x gettext:x readline:x'
|
||||||
New-Item C:\tools -ItemType Directory
|
New-Item $(Get-ToolsLocation) -ItemType Directory
|
||||||
Move-Item $env:chocolateyPackageFolder\tools C:\tools\chicken -Force
|
Move-Item $env:chocolateyPackageFolder\tools $(Get-ToolsLocation)\chicken -Force
|
||||||
Install-ChocolateyEnvironmentVariable -VariableName "CHICKEN_PREFIX" -VariableValue "C:\tools\chicken" -VariableType Machine
|
Install-ChocolateyEnvironmentVariable -VariableName "CHICKEN_PREFIX" -VariableValue "$(Get-ToolsLocation)\chicken" -VariableType Machine
|
||||||
Install-ChocolateyPath -PathToInstall "C:\tools\chicken\bin" -PathType Machine
|
Install-ChocolateyPath -PathToInstall "$(Get-ToolsLocation)\chicken\bin" -PathType Machine
|
||||||
Install-ChocolateyPath -PathToInstall "C:\tools\msys64\mingw64\bin" -PathType Machine
|
Install-ChocolateyPath -PathToInstall "$(Get-ToolsLocation)\msys64\mingw64\bin" -PathType Machine
|
||||||
Update-SessionEnvironment
|
Update-SessionEnvironment
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Remove-Item -Recurse -Force "C:\tools\chicken"
|
Remove-Item -Recurse -Force "$(Get-ToolsLocation)\chicken"
|
||||||
Uninstall-ChocolateyEnvironmentVariable -VariableName "CHICKEN_PREFIX" -VariableType Machine
|
Uninstall-ChocolateyEnvironmentVariable -VariableName "CHICKEN_PREFIX" -VariableType Machine
|
||||||
Update-SessionEnvironment
|
Update-SessionEnvironment
|
||||||
|
|
Loading…
Reference in a new issue