chocolateyinstall.ps1 814 B

123456789101112131415161718192021
  1. $ErrorActionPreference = 'Stop';
  2. $packageName = $env:ChocolateyPackageName
  3. $installDir = Join-Path (Get-ToolsLocation) 'bluebrick'
  4. $blueBrickExe = Join-Path $installDir 'BlueBrick.exe'
  5. $blueBrickLnk = Join-Path ([System.Environment]::GetFolderPath('CommonPrograms')) 'BlueBrick.lnk'
  6. $packageArgs = @{
  7. packageName = $packageName
  8. unzipLocation = $installDir
  9. url = 'https://bluebrick.lswproject.com/download/BlueBrick.1.9.2.zip'
  10. checksum = '4e0682a9083b4026cbf2a03e71dc9e8b3865cc72e3beac65c299197c7e492847'
  11. checksumType = 'sha256'
  12. }
  13. Install-ChocolateyZipPackage @packageArgs
  14. Install-ChocolateyShortcut `
  15. -ShortcutFilePath $blueBrickLnk `
  16. -TargetPath $blueBrickExe `
  17. -Description 'Plan LEGO® Layout with BlueBrick'
  18. Install-BinFile -Name BlueBrick -Path $blueBrickExe -UseStart