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

desktopbundle

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package desktopbundle creates a self-contained MCPB archive for native installation in Claude Desktop. Creating an archive does not install or validate it in the Desktop application and never changes client settings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Executable string
	Output     string
	Version    string
}

type Result

type Result struct {
	Path                     string `json:"path"`
	SHA256                   string `json:"sha256"`
	Platform                 string `json:"platform"`
	Architecture             string `json:"architecture"`
	Status                   string `json:"status"`
	NativeValidationRequired bool   `json:"native_validation_required"`
	DesktopNativeSupported   bool   `json:"desktop_native_supported"`
}

func Create

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

Create writes a new MCPB 0.3 ZIP containing only the supplied Go executable, fixed public metadata, and public license notices. Existing output paths and symlink destinations are refused. A launcher symlink for the executable is intentionally resolved, then the actual opened regular executable is copied. The completed archive is published with an exclusive hard link so incomplete output and existing files cannot be mistaken for a successfully built bundle.

Jump to

Keyboard shortcuts

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