macapp

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 12 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

Command macapp lays out Djinn.app, the macOS application bundle, around a djinn binary built for macOS, and zips it. It is a build tool for `task release-macos-app`, portable: it runs and is tested on Linux too.

go run ./tools/macapp bundle --binary <djinn> --version v0.1.0 bin/release/.app   # → bin/release/.app/Djinn.app
go run ./tools/macapp zip bin/release/.app/Djinn.app bin/release/djinn_darwin_universal_app.zip

The bundle gives macOS what a bare binary lacks: an identifier, which system notifications need, a name and an icon for Finder, Launchpad and the Dock. Its layout:

Djinn.app/Contents/Info.plist          the identifier, the version from the tag, the icon's name, the djinn:// links
Djinn.app/Contents/PkgInfo
Djinn.app/Contents/MacOS/djinn         the binary, the same as in the release's .tar.gz, and the bundle's executable
Djinn.app/Contents/Resources/djinn.icns    build/icon.icns, made from the logo by tools/icons
Djinn.app/Contents/Resources/LICENSE, NOTICE, THIRD_PARTY_NOTICES.md

Finder starts the app with no arguments: djinn knows it runs from a bundle by its path, runs up, and takes the PATH of the user's login shell (cmd/djinn/bundle.go). No launcher script stands before it: one binary to sign.

The zip holds Djinn.app at its root: Finder unzips it into the app, ready to drag into Applications.

Jump to

Keyboard shortcuts

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