majkinetor / au

Chocolatey Automatic Package Updater Module
GNU General Public License v2.0
227 stars 71 forks source link

64 bit only packages #242

Closed jamesmyatt closed 3 years ago

jamesmyatt commented 3 years ago

I'm trying to make a package for an application that is 64-bit only on Windows (https://github.com/conda-forge/miniforge). How should this be handled? When I return no URL32 from au_GetLatest, it says "This package does not support 64 bit architecture." and replaces the checksum64 parameter with ''.

AdmiringWorm commented 3 years ago

Sounds like you are relying on au's built-in automatic checksums, if that is so you need to change the line saying update (or Update-Package) to only check for the 64bit edition, ie change it to update -ChecksumFor 64. Here is an example: https://github.com/AdmiringWorm/chocolatey-packages/blob/master/automatic/authy-desktop/update.ps1#L30

jamesmyatt commented 3 years ago

@AdmiringWorm Thanks. I'll try that.

jamesmyatt commented 3 years ago

Seems to work. Thanks