[GH-ISSUE #122] Creating a dust Chocolatey Packages #47

Closed
opened 2026-06-08 11:25:27 +03:00 by zhus · 5 comments
Owner

Originally created by @mikemadden42 on GitHub (Oct 8, 2020).
Original GitHub issue: https://github.com/bootandy/dust/issues/122

Is there any interest in creating a dust chocolatey package (https://chocolatey.org/docs/create-packages)? I think it could be beneficial.

We could base the package on the Windows release artifacts:
https://github.com/bootandy/dust/releases

Originally created by @mikemadden42 on GitHub (Oct 8, 2020). Original GitHub issue: https://github.com/bootandy/dust/issues/122 Is there any interest in creating a dust chocolatey package (https://chocolatey.org/docs/create-packages)? I think it could be beneficial. We could base the package on the Windows release artifacts: https://github.com/bootandy/dust/releases
zhus closed this issue 2026-06-08 11:25:27 +03:00
Author
Owner

@bootandy commented on GitHub (Oct 9, 2020):

Go for it if you'd like. I don't have a windows system so I can't be much help.

Let me know if I can do anything to make it easier.

<!-- gh-comment-id:705848210 --> @bootandy commented on GitHub (Oct 9, 2020): Go for it if you'd like. I don't have a windows system so I can't be much help. Let me know if I can do anything to make it easier.
Author
Owner

@mikemadden42 commented on GitHub (Oct 9, 2020):

Thanks. Each choco package needs a nuspec file. How does the following look @bootandy ? This is pretty boilerplate. I just changed the names, version, description, etc for dust.

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
  <metadata>
    <id>dust</id>
	<version>0.5.3</version>
    <title>dust</title>
    <authors>andy.boot</authors>
    <summary> A more intuitive version of du in rust</summary>
    <description>du + rust = dust. Like du but more intuitive.</description>	
  </metadata>
  <files>
    <file src="tools\**" target="tools" />
  </files>
</package>

Likewise, there is a PowerShell script that installs the tool. This is also pretty boilerplate. I changed the download URLs and sha256sums.

$ErrorActionPreference = 'Stop';

$version     = $env:chocolateyPackageVersion
$packageName = $env:chocolateyPackageName
$toolsDir    = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$url         = 'https://github.com/bootandy/dust/releases/download/v0.5.3/dust-v0.5.3-i686-pc-windows-msvc.zip'
$url64       = 'https://github.com/bootandy/dust/releases/download/v0.5.3/dust-v0.5.3-x86_64-pc-windows-msvc.zip'

$packageArgs = @{
    packageName    = $packageName
    unzipLocation  = $toolsDir
    fileType       = 'exe'
    url            = $url
    checksum       = '103102D57064964782E0EE9BCBF30384059A9189183135B624CE2BF5E63BE734'
    checksumType   = 'sha256'
    url64bit       = $url64
    checksum64     = '4A99742497FD5950855323825257F639928E363DB65478BFBADF7E3BE873C548'
    checksumType64 = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs
<!-- gh-comment-id:705889910 --> @mikemadden42 commented on GitHub (Oct 9, 2020): Thanks. Each choco package needs a nuspec file. How does the following look @bootandy ? This is pretty boilerplate. I just changed the names, version, description, etc for `dust`. ``` <?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> <metadata> <id>dust</id> <version>0.5.3</version> <title>dust</title> <authors>andy.boot</authors> <summary> A more intuitive version of du in rust</summary> <description>du + rust = dust. Like du but more intuitive.</description> </metadata> <files> <file src="tools\**" target="tools" /> </files> </package> ``` Likewise, there is a PowerShell script that installs the tool. This is also pretty boilerplate. I changed the download URLs and sha256sums. ``` $ErrorActionPreference = 'Stop'; $version = $env:chocolateyPackageVersion $packageName = $env:chocolateyPackageName $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $url = 'https://github.com/bootandy/dust/releases/download/v0.5.3/dust-v0.5.3-i686-pc-windows-msvc.zip' $url64 = 'https://github.com/bootandy/dust/releases/download/v0.5.3/dust-v0.5.3-x86_64-pc-windows-msvc.zip' $packageArgs = @{ packageName = $packageName unzipLocation = $toolsDir fileType = 'exe' url = $url checksum = '103102D57064964782E0EE9BCBF30384059A9189183135B624CE2BF5E63BE734' checksumType = 'sha256' url64bit = $url64 checksum64 = '4A99742497FD5950855323825257F639928E363DB65478BFBADF7E3BE873C548' checksumType64 = 'sha256' } Install-ChocolateyZipPackage @packageArgs ```
Author
Owner

@mikemadden42 commented on GitHub (Oct 9, 2020):

FYI, I'm able to successfully create a package with the above new files.

<!-- gh-comment-id:705909045 --> @mikemadden42 commented on GitHub (Oct 9, 2020): FYI, I'm able to successfully create a package with the above new files.
Author
Owner

@bootandy commented on GitHub (Oct 9, 2020):

yes that looks good to me.

thanks!

<!-- gh-comment-id:706317111 --> @bootandy commented on GitHub (Oct 9, 2020): yes that looks good to me. thanks!
Author
Owner

@bootandy commented on GitHub (Oct 22, 2020):

I assume this is now done.

<!-- gh-comment-id:713883975 --> @bootandy commented on GitHub (Oct 22, 2020): I assume this is now done.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#47