nsis

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func Download(ctx context.Context, dir string, file func(url string) download.File) (string, error)

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

func Executable(dir string) string

Executable returns makensis in the NSIS directory dir, or "".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL