Documentation
¶
Overview ¶
Package nsis pins the NSIS that golet build downloads on Windows to make the installer, and installs it into the user's cache directory, where makensis runs as it does from an installation. CI downloads it with internal/prefetch before the tests run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Release = struct { Version, SHA256 string URLs []string }{ Version: "3.13", SHA256: "ba63dffc4410ee89193e1cb5a41989991bd77c61068da17e3156d136b7b0b3d8", URLs: []string{ "https://github.com/egoist/mygo/releases/download/nsis-3.13/nsis-3.13.zip", "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.13/nsis-3.13.zip", }, }
Release is the NSIS that golet build downloads: the official zip, checked against its SHA-256. The URLs are copies of that zip, tried in order: the asset of the nsis-<version> release of Golet's repository first, since SourceForge, where NSIS publishes it, has been down for hours at a time, its mirrors redirecting to it.
Functions ¶
func Dir ¶
func Dir() string
Dir is where golet build keeps the NSIS it downloads, or "" without a cache directory.
func Download ¶
Download downloads Release into dir, unless it is there already, and returns its makensis; file makes the download of each URL. The archive is unpacked next to dir and renamed into place, so dir is complete whenever it exists, and processes that need it at the same time download it once: the others wait, then find it.
func Executable ¶
Executable returns makensis in the NSIS directory dir, or "".
Types ¶
This section is empty.