Browse Source

Package for BlueBrick LEGO Layout Editor

Douglas Thrift 6 years ago
parent
commit
6929823242

BIN
icons/bluebrick.png


+ 29 - 0
manual/bluebrick/bluebrick.nuspec

@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
+  <metadata>
+    <id>bluebrick</id>
+    <version>1.8.1</version>
+    <packageSourceUrl>https://github.com/douglaswth/chocolatey-packages/tree/master/manual/bluebrick</packageSourceUrl>
+    <owners>Douglas Thrift</owners>
+    <title>BlueBrick</title>
+    <authors>Alban Nanty</authors>
+    <projectUrl>https://bluebrick.lswproject.com/</projectUrl>
+    <iconUrl>http://cdn.rawgit.com/douglaswth/chocolatey-packages/master/icons/bluebrick.png</iconUrl>
+    <copyright>2010 Alban Nanty</copyright>
+    <licenseUrl>https://www.gnu.org/licenses/gpl.html</licenseUrl>
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <projectSourceUrl>https://bitbucket.org/banban/bluebrick</projectSourceUrl>
+    <bugTrackerUrl>https://bitbucket.org/banban/bluebrick/issues?status=new&amp;status=open</bugTrackerUrl>
+    <tags>bluebrick lego layout</tags>
+    <summary>LEGO® Layout Editor</summary>
+    <description>
+BlueBrick is designed specially for the AFOLs who want to prepare the layouts of their LEGO® exhibitions. BlueBrick is compatible with [LDRAW](http://www.ldraw.org/) and ["Train Depot Track Designer"](http://www.ngltc.org/Train_Depot/td.htm), and is designed with an easily expandable parts database. Its layers feature allows you to better organize your map, and some special layers make annotations and area assignments possible.
+    </description>
+    <releaseNotes>
+See the Change log section of the [Download](https://bluebrick.lswproject.com/download.html) page.
+    </releaseNotes>
+  </metadata>
+  <files>
+    <file src="tools\**" target="tools" />
+  </files>
+</package>

+ 0 - 0
manual/bluebrick/tools/BlueBrick.exe.gui


+ 28 - 0
manual/bluebrick/tools/chocolateyinstall.ps1

@@ -0,0 +1,28 @@
+$ErrorActionPreference = 'Stop';
+
+$packageName  = $env:ChocolateyPackageName
+$toolsDir     = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
+$blueBrickExe = Join-Path $toolsDir 'BlueBrick.exe'
+$blueBrickLnk = Join-Path ([System.Environment]::GetFolderPath('CommonPrograms')) 'BlueBrick.lnk'
+
+$packageArgs = @{
+  packageName   = $packageName
+  unzipLocation = $toolsDir
+  url           = 'https://bluebrick.lswproject.com/download/BlueBrick1.8.1.zip'
+  checksum      = '1bce9fe3e3ff1595ddab07765aaa8232362e34a4a4d666dab5d0573eb4725f4a'
+  checksumType  = 'sha256'
+}
+$partsPackageArgs = @{
+  packageName   = $packageName
+  unzipLocation = $toolsDir
+  url           = 'https://bluebrick.lswproject.com/download/AllAdditionalParts.zip'
+  checksum      = 'f728151147d8c862ce88e50f1bf9cb2b748734f52417be8bb9c11fdf60f2150b'
+  checksumType  = 'sha256'
+}
+
+Install-ChocolateyZipPackage @packageArgs
+Install-ChocolateyZipPackage @partsPackageArgs
+Install-ChocolateyShortcut `
+  -ShortcutFilePath $blueBrickLnk `
+  -TargetPath $blueBrickExe `
+  -Description 'Plan LEGO® Layout with BlueBrick'

+ 5 - 0
manual/bluebrick/tools/chocolateyuninstall.ps1

@@ -0,0 +1,5 @@
+$ErrorActionPreference = 'Stop';
+
+$blueBrickLnk = Join-Path ([System.Environment]::GetFolderPath('CommonPrograms')) 'BlueBrick.lnk'
+
+Remove-Item -Path $blueBrickLnk -Force | Out-Null