Help us shape the future of Go! Take the 2026 Go Developer Survey

windowspackage

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package windowspackage writes unsigned MSIX containers using Go's ZIP, DEFLATE, XML and SHA256 implementations. It does not invoke packaging tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, options Options) error

Create publishes only after every input, block map and ZIP directory has been written successfully. Compression is bounded by a block buffer and a temporary file, rather than holding each executable in memory.

func EncodeFootprint

func EncodeFootprint(name string, data []byte, level int) (*zip.FileHeader, []byte, error)

EncodeFootprint prepares a small MSIX metadata record without a data descriptor. Signing also uses it, adjusting the ZIP creator version for the signature.

Types

type Options

type Options struct {
	Directory   string
	Output      string
	Compression int // 0 selects level 4; 1..9 selects DEFLATE effort.
	Prepare     func(context.Context, string) error
}

Jump to

Keyboard shortcuts

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