A Wine prefix manager for Linux, in the spirit of Bottles, where each prefix
is described by one declarative file, cellar.toml. The GUI, the command line
and anything scripted (an AI agent included) all edit that same file, and
cellar reconciles the prefix to match it.
The same engine doubles as the launcher inside Wine apps packaged for
FlatPark: a package ships a cellar.toml and the
vendor's installer, and cellar builds and maintains each user's prefix from it.
- Declarative prefixes: runner, locale, fonts, Windows version, virtual
desktop, DPI, drives, winetricks verbs and apps, all in
cellar.toml.planshows what would change,applymakes it so, andrunapplies first whenever the file changed. Registry values cellar did not set are left alone. - Runners: the system Wine (in the Flatpak:
org.winehq.Wineas flatpak installed it), or community builds downloaded on demand, each checked against its published checksum: Kron4ek's Wine, Staging, Staging-TkG and Proton, GE-Proton, Proton-CachyOS (the x86-64-v3 build on CPUs that have it) and Bottles' soda. The catalog isinternal/runner/runners.toml. WoW64 builds run 32-bit programs with no 32-bit host libraries; builds that also carry a 32-bit side (Proton, soda) switch to WoW64 mode (WINEARCH=wow64) where those libraries are missing. A prefix may name a source instead of a release (runner = "soda"): it follows the newest release installed, which a prefix still running keeps until it is done. New releases come by download only: the runner page,cellar runner update(keeps the newest two of each followed source, and any a prefix names), or at Cellar's start when "update automatically" is on (off by default). Nothing is looked up when a program starts. A FlatPark app whosecellar.tomlfollows a source downloads it on its first start (shown in the progress window with--dialog) and stays on that release; Cellar offers the update on the app's page, and its update button and automatic update take the apps along, through their own cellar. Wine Gecko / Mono are off per prefix until turned on ([addons], or the create and settings dialogs); on, a prefix uses the runner's version unpacked where found (the runner's own, or in the Flatpak theorg.winehq.Wine.gecko/.monoextensions), else Wine offers the download. - Fonts: core and CJK font sets copied into the prefix and wired up with font links and substitutes, so CJK text renders without manual registry work.
- Dependencies: every winetricks verb, searchable, with the common ones described.
- Apps: finds installed programs from Start menu shortcuts and
drive_c, extracts their icons and adds desktop launchers. - Logs: every run is recorded (the last 20 per prefix), console output in the prefix's code page decoded for reading.
- Import: brings over existing bottles, their DLL overrides and settings included, and prefixes of another cellar (the system-installed one's into the Flatpak, or the other way round).
Cellar is on FlatPark as a Flatpak:
flatpak install https://dl.flatpark.org/org.flatpark.Cellar.flatpakref # add --user for a per-user install
flatpak install flathub org.winehq.Wine//stable-26.08 # optionalReleases carry x86_64
.deb, .rpm and Arch .pkg.tar.zst packages, which bring in their
dependencies when installed with the package manager, and two bare binaries:
cellar-x86_64 (GUI and CLI) and cellar-cli-x86_64 (static, CLI only).
Builds of every commit are in the
CI runs.
The bare binaries need gtk4 and webkitgtk-6.0 (GUI only), 7zip
(unpacks installers and fonts) and cabextract (for winetricks). Package
names differ between distributions; check yours.
Run cellar with no arguments for the GUI, or use the CLI:
cellar new office --locale zh_CN # create a prefix and apply it
cellar run office --exe ~/Downloads/setup.exe
cellar app discover office # programs installed but not added yet
cellar app add office 'C:\Program Files\App\app.exe'
cellar run office/app
cellar config office winver=win10 dpi=144
cellar deps office add vcrun2022
cellar edit office # edit cellar.toml, then applycellar help lists every command. All of them accept --json. Data lives in
$CELLAR_HOME, by default $XDG_DATA_HOME/cellar:
prefixes/<name>/cellar.toml the declaration
prefixes/<name>/pfx/ the WINEPREFIX
prefixes/<name>/runs/ a log per run
runners/ downloaded Wine builds
A minimal cellar.toml:
locale = "zh_CN"
font_sets = ["core", "cjk"]
[[apps]]
id = "notepadpp"
name = "Notepad++"
exe = 'C:\Program Files\Notepad++\notepad++.exe'cellar inspect <prefix> prints the effective configuration, with the built-in
defaults merged in.
packaging/examples holds FlatPark package examples
(7-Zip, foobar2000, Notepad++). Each ships the vendor's installer unmodified as
extra-data, and its cellar.toml says how to install it:
[install]
source = "7zip-setup.exe"
method = "run" # run the installer in the user's prefix on first launch
args = ["/S"]Inside a package, cellar with no arguments starts the default app, and the
user's settings are changed the same way:
flatpak run --command=cellar org._7_zip.SevenZip config locale=ja_JPRequires Go (see go.mod).
make cli # dist/cellar-cli: static, no cgo
make image && make gui # dist/cellar: built in a podman container with the
# GTK 4 / WebKitGTK 6 dev packages
make test
make flatpak # build and install the local Flatpakmake cli and make gui first build the helper that draws the progress
window of cellar run --dialog (make helper: internal/dialog/gtkdialog,
GTK 3 loaded at run time), which cellar embeds. A cellar built with a plain
go build has no helper: it builds and runs, but --dialog then only sends
a notification. Building without make, run make helper first, for the same
architecture (GOARCH=arm64 make helper before GOARCH=arm64 go build).
Versions come from the vX.Y.Z tags (scripts/version.sh): a build after a
release reports e.g. 0.1.0-3-gabc1234. To cut a release, run the
release workflow
and pick patch, minor or major; it tags the next version, builds and publishes
it. Pushing a vX.Y.Z tag does the same.