|
@@ -1,16 +1,16 @@
|
|
|
$ErrorActionPreference = 'Stop';
|
|
|
|
|
|
$packageName = $env:ChocolateyPackageName
|
|
|
-$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
|
|
-$blueBrickExe = Join-Path $toolsDir 'BlueBrick.exe'
|
|
|
+$installDir = Join-Path (Get-ToolsLocation) 'bluebrick'
|
|
|
+$blueBrickExe = Join-Path $installDir 'BlueBrick.exe'
|
|
|
$blueBrickLnk = Join-Path ([System.Environment]::GetFolderPath('CommonPrograms')) 'BlueBrick.lnk'
|
|
|
|
|
|
$packageArgs = @{
|
|
|
packageName = $packageName
|
|
|
- unzipLocation = $toolsDir
|
|
|
- url = 'https://bluebrick.lswproject.com/download/BlueBrick.1.9.0.zip' # BlueBrick
|
|
|
- checksum = 'e94924e9d0e529ee65990615429deda927923f8b65852205ebe4ef78bd53d820' # BlueBrick
|
|
|
- checksumType = 'sha256' # BlueBrick
|
|
|
+ unzipLocation = $installDir
|
|
|
+ url = 'https://bluebrick.lswproject.com/download/BlueBrick.1.9.0.zip'
|
|
|
+ checksum = 'e94924e9d0e529ee65990615429deda927923f8b65852205ebe4ef78bd53d820'
|
|
|
+ checksumType = 'sha256'
|
|
|
}
|
|
|
|
|
|
Install-ChocolateyZipPackage @packageArgs
|
|
@@ -18,3 +18,4 @@ Install-ChocolateyShortcut `
|
|
|
-ShortcutFilePath $blueBrickLnk `
|
|
|
-TargetPath $blueBrickExe `
|
|
|
-Description 'Plan LEGO® Layout with BlueBrick'
|
|
|
+Install-BinFile -Name BlueBrick -Path $blueBrickExe -UseStart
|