Use 'Get-ToolsLocation' to determine prefix

This commit is contained in:
Daniel Ziltener 2020-09-27 15:22:31 +02:00
parent f5b89e3b07
commit 16b0117603
2 changed files with 6 additions and 6 deletions

View File

@ -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 'pacboy -Sy --needed --noconfirm binutils:x make:x gcc:x gettext:x readline:x'
New-Item C:\tools -ItemType Directory
Move-Item $env:chocolateyPackageFolder\tools C:\tools\chicken -Force
Install-ChocolateyEnvironmentVariable -VariableName "CHICKEN_PREFIX" -VariableValue "C:\tools\chicken" -VariableType Machine
Install-ChocolateyPath -PathToInstall "C:\tools\chicken\bin" -PathType Machine
Install-ChocolateyPath -PathToInstall "C:\tools\msys64\mingw64\bin" -PathType Machine
New-Item $(Get-ToolsLocation) -ItemType Directory
Move-Item $env:chocolateyPackageFolder\tools $(Get-ToolsLocation)\chicken -Force
Install-ChocolateyEnvironmentVariable -VariableName "CHICKEN_PREFIX" -VariableValue "$(Get-ToolsLocation)\chicken" -VariableType Machine
Install-ChocolateyPath -PathToInstall "$(Get-ToolsLocation)\chicken\bin" -PathType Machine
Install-ChocolateyPath -PathToInstall "$(Get-ToolsLocation)\msys64\mingw64\bin" -PathType Machine
Update-SessionEnvironment

View File

@ -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
Update-SessionEnvironment