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.1.zip'
  10. checksum = '2fc69f384a1232d8e33cf3fb91cda0d2b8e876cbcdb072e5acfe4da2153b72c5'
  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