Desktop program (anchor.desktop.app)¶
What the Windows installer runs (ANCHOR.exe): the same interface, in its own window (WebView2) with an
icon near the clock, whose title bar follows the interface's theme (on Windows 10, only while "accent
color on title bars" is off in Windows' color settings). Closing the window keeps ANCHOR running there, for the schedules; Quit, in
the icon's menu, ends it, and starting it again brings the running one's window back. It works from
the user's data folder (%LOCALAPPDATA%\ANCHOR on Windows), and the first opening checks Ollama, the
model and the browser, offering to download the last two. It needs requirements-desktop.txt.
pip install -r requirements-desktop.txt
python -m anchor.desktop.app # opens the window and the icon near the clock
python -m anchor.desktop.app --background # hidden near the clock (how Windows starts it)
| Option | Meaning |
|---|---|
--background |
Starts hidden near the clock. Start with Windows (Settings, or the icon's menu; on by default in the installer) starts it this way when the person logs in. |
--self-test FILE |
Checks, from inside the built program, that everything it needs came with it (the window, the icon near the clock, the saved logins, the spreadsheets, the browser driver, the interface, the profiles, the page script, the icon) and writes the result to FILE; exit code 1 if something is missing. |
Building the installer (on Windows; GitHub does it in .github/workflows/installer.yml, by hand or
when a version tag is pushed, and attaches it to the release):
cd web && npm ci && npm run build && cd ..
pip install -r requirements-desktop.txt
pyinstaller packaging/anchor.spec --noconfirm # dist/ANCHOR/ANCHOR.exe
dist/ANCHOR/ANCHOR.exe --self-test selftest.json
set ANCHOR_VERSION=0.5.0
iscc packaging\installer.iss # dist/installer/ANCHOR-Setup-0.5.0.exe (Inno Setup 6)
The installer installs for the current user (%LOCALAPPDATA%\Programs\ANCHOR), adds ANCHOR to the
Start menu, starts it with Windows unless that box is unticked, and, when uninstalled, asks whether to
delete the user's data (%LOCALAPPDATA%\ANCHOR) too.