GitHub Releases is a place where we can host downloadable packages for our projects.
NI is already using it:
https://github.com/ni/niveristand-scan-engine-ethercat-custom-device/releases/
Each package is given a nice clear URL like
https://github.com/ni/niveristand-scan-engine-ethercat-custom-device/releases/download/v19.0.0/ni-sc...
How nice it would be if my NIPM feed could point to GitHub-hosted packages! This way, I don't need to maintain my own file server. I created a custom feed to try it out; this is what my Packages.gz contains:
Architecture: windows_all CompatibilityVersion: 190006 Description: Provides support for the NI Scan Engine and EtherCAT custom device for NI VeriStand 2018. DisplayName: NI Scan Engine and EtherCAT for VeriStand 2018 DisplayVersion: 19.0.0 Eula: eula-ni-standard Filename: https://github.com/ni/niveristand-scan-engine-ethercat-custom-device/releases/download/v19.0.0/ni-scan-engine-veristand-2018-support_19.0.0.11_windows_all.nipkg Homepage: http://www.ni.com LanguageSupport: en MD5sum: be9d301d98465ac3157fbb8b6cee370b Maintainer: National Instruments <support@ni.com> Package: ni-scan-engine-veristand-2018-support Plugin: file Priority: standard Section: Add-Ons Size: 38198876 UserVisible: yes Version: 19.0.0.11
Alas, although NIPM accepted the feed, it did not allow the package to be downloaded ("Redirection to another URL is forbidden"):
It turns out that the nice URL above actually redirects to an Amazon cloud storage location, and the final URL is like
Could the restriction on redirections be lifted somehow? Perhaps there could be an optional property in the feed to specify that a particular Filename is allowed to redirect elsewhere. Perhaps the feed creator can nominate one or more "whitelisted" domains for a particular Filename's redirection.
(originally posted in the NIPM forum)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
NI has released Package Manager 2023 Q3 which allows feed URLs to redirect when download package from hosted web services, such as GitHub, and OneDrive.