# Clearcote Profile Manager
A desktop app to **create, save, organize, and launch [Clearcote](https://github.com/clearcotelabs/clearcote-browser) browser profiles** — one coherent, persistent identity per profile (fingerprint seed + proxy + persistent storage), opened as a normal interactive browser window you drive yourself.

> **Status:** built — profile create/edit/launch, running a profile in the cloud with a live window, proxy geo-resolve, import/export, a light/dark theme (dark by default), and packaged builds for **Windows, Linux and macOS** (all cut by CI on every release). Full design + phases in **[PLAN.md](PLAN.md)**.
More screenshots — run a task, table view, editor, light theme, meet Clyde
**Run a task on many profiles** — Jet learns it in the first profile and repeats it on the rest; each waits for you before a click that can't be undone


**Saved tasks** — the recipe, the values it asks for, the steps Jet took and every run; run it again later with other profiles or values


**Table view** (cards or a table, from the toolbar)

**Empty state — meet Clyde, the Clearcote chameleon** (he bobs, blinks, and shifts hue)

**Light theme** (toggle in the header; dark is the default)

**Profile editor** (here with a profile's task values)

## Download
Prebuilt **Windows, Linux and macOS** builds are on the **[Releases page](https://github.com/clearcotelabs/clearcote-profile-manager/releases)** — no need to build from source. Every release carries all three.
**Windows (x64)**
- **Installer** — `Clearcote-Profile-Manager--setup.exe` · double-click to install.
- **Portable** — `Clearcote-Profile-Manager--x64.zip` · unzip and run `Clearcote Profile Manager.exe` (no install).
**Linux (x64)**
- **AppImage** — `Clearcote-Profile-Manager--x86_64.AppImage` · no install and no root:
```bash
chmod +x Clearcote-Profile-Manager--x86_64.AppImage
./Clearcote-Profile-Manager--x86_64.AppImage
```
- **Tarball** — `Clearcote-Profile-Manager--x64.tar.gz` · unpack and run `clearcote-profile-manager`.
The app launches the Linux Clearcote build (`chrome`, no extension) — the same catalog and the same
version dropdown as on Windows. Point it at one in **Settings**, or let it auto-detect a sibling
`linux-x64/` dev build or `CLEARCOTE_BINARY`.
**macOS**
- **Apple Silicon** — `Clearcote-Profile-Manager--mac-arm64.dmg` · open it and drag the app to Applications.
- **Intel** — `Clearcote-Profile-Manager--mac-x64.dmg` · the same.
The app is ad-hoc signed but not notarized, so macOS blocks the first open: choose **System Settings →
Privacy & Security → Open Anyway** (or, in Terminal, `xattr -dr com.apple.quarantine "/Applications/Clearcote Profile Manager.app"`).
The Clearcote browser for macOS is a **PRO build for Apple Silicon** (`Chromium.app`): with a licence key
in **Settings** the app downloads it, unpacks it with `ditto` and launches it, the same way the SDK does.
The free builds have no macOS version, and an Intel Mac has no browser build, so there run profiles in the
**cloud**, or choose a `Chromium.app` in **Settings → Browser**. New profiles on a Mac start as a **macOS**
persona: the browser's fonts and text measurements there are the Mac's own, so a Windows or Linux persona
would contradict itself on every font check (the editor warns when one does).
### Verify it's genuine (recommended)
Every release is **built entirely by [GitHub Actions](.github/workflows/release.yml)** from the tagged commit — Windows on a `windows-latest` runner, Linux on `ubuntu-latest`, macOS on `macos-latest`, each packaged natively, never on anyone's machine — so the build is public and auditable. Two independent ways to confirm your download wasn't tampered with:
```bash
# 1. Provenance — cryptographically proves it came from THIS repo's CI at the release commit
gh attestation verify Clearcote-Profile-Manager--setup.exe -R clearcotelabs/clearcote-profile-manager
gh attestation verify Clearcote-Profile-Manager--x86_64.AppImage -R clearcotelabs/clearcote-profile-manager
gh attestation verify Clearcote-Profile-Manager--mac-arm64.dmg -R clearcotelabs/clearcote-profile-manager
# 2. Checksum — SHA256SUMS.txt ships with every release
sha256sum -c SHA256SUMS.txt --ignore-missing # Linux
shasum -a 256 -c SHA256SUMS.txt --ignore-missing # macOS
# Windows (PowerShell):
# (Get-FileHash .\Clearcote-Profile-Manager--setup.exe -Algorithm SHA256).Hash
```
> The app is **unsigned**, so Windows SmartScreen may warn on first run (**More info → Run anyway**), and macOS blocks the first open (**Open Anyway**, above). Proper Authenticode / Apple Developer ID signing needs a paid certificate; until then, the public-CI build + provenance attestation + checksums are the trust anchor.
## Web version and the Clearcote Helper
The same profile manager also runs in your browser, with no app to install. A web page cannot start
programs, so a small open-source **helper** does that part: it is this app without its window, the same
code, reached over `http://127.0.0.1`. You pair it once with a code, approve it on the helper's own page,
and can see and remove every paired site there. The helper download is reproducible: rebuild it from
source and compare every file. See **[helper/README.md](helper/README.md)**.
## Why
Clearcote is driven by command-line identity flags (`--fingerprint`, `--fingerprint-platform`, `--timezone`, `--accept-lang`, `--webrtc-ip`, `--proxy-server`, `--user-data-dir`). Juggling many identities by hand is tedious and error-prone. This app gives you a GUI to:
- **Create & save profiles** — each a named identity: fingerprint seed, platform/brand, timezone, language, WebRTC IP, geoip auto-match, proxy, notes/tags.
- **Persist sessions** — every profile gets its own `--user-data-dir`, so cookies/logins/storage survive across launches.
- **Launch in one click** — spawns the verified Clearcote binary with the profile's flags as an interactive window.
- **Organize** — search, tag, group, duplicate, import/export.
It mirrors the [clearcote npm SDK](https://www.npmjs.com/package/clearcote) to **resolve + SHA-256-verify** the browser binary (auto-download) and, with a PRO key, to check out a floating-concurrency lease (see [PRO tier](#pro-tier-license-key)). Launching is a direct, interactive `chrome.exe` spawn — **not** Playwright automation.
## Stealth options
Beyond the basics, each profile exposes Clearcote's full identity surface (all under **Advanced stealth** in the editor, reflected live in the launch-command preview with secrets redacted):
- **Captured fingerprint** — adopt a *real machine's* GPU, screen, fonts, voices & WebGL via `--fingerprint-profile`. Browse the curated [clearcote-profiles](https://github.com/clearcotelabs/clearcote-profiles) library filtered **by GPU vendor** — pick one matching your host so the imported GPU stays coherent with the actual render. Captures taken on a display too small to contain a normal browser window are flagged on import and hidden from the picker by default: the window would end up larger than the screen it claims to sit on, which no real machine produces.
- **Rendering** is three groups. **Graphics card**: which card a page sees. **Noise**: the switch for all noise (`--disable-fingerprint-noise`, on by default), with Canvas 2D noise and WebGL noise below it; noise is small changes in the pixels a page reads back from a 2D canvas and from WebGL, and nothing else is noised (not audio, not text sizes). **Advanced noise** (folded): flat-area noise and the WebGL partial-read margin, which decide how the noise is placed. The card's name and the noise are separate settings: neither changes the other.
- **Bluetooth** (`--fingerprint-bluetooth=on|off`, under Hardware, Pro engine) — what a page reads when it asks whether the computer has Bluetooth. Left on the default, the persona decides. Another engine ignores it; the launch then warns.
- **Noise per profile** (`--fingerprint-noise-per-profile`, engine r60+) — one noise result for the profile on every site instead of a different one per site. An older engine ignores it; the launch then warns and the noise stays per site.
- **Use real GPU** (`--disable-gpu-fingerprint`) — report the host's actual GPU instead of a spoofed one; the most coherent option when no matching captured profile is available.
- **Storage quota** (`--fingerprint-storage-quota`, MB) — overrides `navigator.storage.estimate().quota`. Best left empty: Chrome reports a fixed quota (what the site uses plus 10 GB, in normal and incognito windows alike), and an empty field already matches it.
- **GPU model** — which graphics card the profile reports to WebGL. The persona already varies the
model with the seed, so profiles no longer all report the same card; the picker under **Hardware**
is for when you need a particular one. It lists pre-checked models with this machine's GPU maker's
group first (the app asks the OS which adapter drives the display), **Pick one at random** draws
another model of that maker, and choosing a model writes both `--fingerprint-gpu-vendor` and
`--fingerprint-gpu-renderer` in the form the persona's **platform** prints (Direct3D11 for a Windows
persona, OpenGL for Linux — switching the platform rewrites them). The strongest coherence is a
model of this machine's own maker: driver limits follow the real card, so a claim from another
maker is flagged by the coherence check. **Custom…** exposes the two raw strings for a card the
list does not have; a profile saved with hand-typed strings opens as Custom with them intact. An
Android persona hides the picker (the engine has its own phone device table).
- **Platform & brand version** — fine-grained persona overrides.
- **CPU cores and memory** — chosen from lists of values real machines report. The 1 GB memory value only appears for the Android platform. A core count below this PC's also limits the browser to that many CPUs.
- **Light stealth** — spoof only a coherent, seed-derived bundle of the metadata axes that survive strict checks (cores, memory, colour depth, pixel ratio, touch points), applied through the native override switches and emitting **no** `--fingerprint`, so the persona machinery and farbling never engage. Rendering, TLS and the real Chrome version are left untouched. Screen size is deliberately not spoofed. Any field you set explicitly wins over the preset. *Not strictly better than the default* — it trades a broad persona for a much narrower surface, so test it against your target.
- **Native metadata overrides** — `deviceMemory`, `colorDepth`, `devicePixelRatio`, `maxTouchPoints` and the screen / avail dimensions, each settable on its own. These are read directly by the getters (flag > persona > real) with no persona machinery behind them. The screen row is the risky one. Leaving it empty and letting the seed or capture supply the screen is the recommended default. On builds before 154 r36, with a seed, a captured fingerprint or Light stealth active, a typed screen size can disagree with the screen CSS media queries report, even when it matches your own monitor; 154 r36 and newer report the typed size to both, so typing your own display's four values is fine there. If you type the avail fields, use the real work area (the screen minus the taskbar), not the full screen. The editor warns when a typed screen does not hold up on the build the profile launches.
- **Third-party cookies** — allowed by default, as in Chrome; embedded sign-in, payment and challenge frames rely on them. Tick **Block third-party cookies** to block them for a profile (`--block-third-party-cookies`, build 154 r36+). Builds 152 r22 to r35 blocked them by default, so a profile that does not block also sends `--allow-third-party-cookies`, which keeps every build the same.
- **Transparent proxy** (`--transparent-proxy`, build 152 r22+) — with a proxy set, send `Connection` instead of `Proxy-Connection` on plain-HTTP requests and report proxied connection timing like a reused connection. Does nothing without a proxy.
- **WebRTC mDNS** — real Chrome hides local host candidates behind a `.local` name, and so does Clearcote by default. Switch it off only if you need routable LAN/P2P candidates — it re-exposes your private IP to every page.
- **Mobile (Android) persona** — pick `android` in the **Platform** selector for a best-effort phone identity: mobile UA / UA-CH, touch, mobile viewport (a phone `--window-size` is set automatically), portrait orientation, no PDF plugin, Mali/Adreno GPU.
- **TLS network persona** (`--fingerprint-tls-profile`) — keep the TLS ClientHello coherent with the persona's *claimed* Chrome version instead of always emitting the build's native TLS. `match-persona` (the default) follows the brand version; `native` keeps it stock. Chromium-core (Chrome/Edge/Brave/Opera share the ClientHello).
- **Canvas bridge** *(experimental)* — forward canvas / WebGL rendering to a remote real-GPU host so the pixel readback matches the claimed GPU, for sites that pixel-hash the canvas. A per-origin policy (bridge everything, or an allow / deny list) and the cold-cache behaviour are both configurable: every bridged readback is a network round-trip on the renderer thread, so it's worth restricting to the origins that actually score canvas coherence. Needs a bridge host and a Clearcote build with canvas-bridge support.
- **Portable profile** *(Clearcote 151 r14+)* — a profile folder already moves between machines by
copying it, with one exception: cookies. They're sealed with a key the OS keychain / DPAPI holds
for the machine that created them, so a copied profile decrypts to an empty jar and every session
is lost. **Portable profile** (`--portable-profile`) keeps that key inside the folder so it travels
whole — at the cost of the cookie database being effectively unencrypted at rest. **Cookie
encryption key** (`--profile-encryption-key`) is the stronger form: you hold the key, so nothing
sensitive is written to disk. It wins when both are set, and is redacted in the preview and on
export.
- **This computer** (Hardware) — for one identity per real desktop: show this computer's own screen, or its screen,
touch points and display language (in the list genuine Chrome writes for it), instead of the persona's generated
values. Read from the operating system at launch; graphics card, processor and memory stay the persona's. Values
you type still win, and with a proxy and GeoIP on the proxy's country decides the languages. Off by default:
every profile on one computer then shows the same values, which makes them easier to link.
- **Widevine (DRM)** — fetch Google's Widevine CDM and seed it into the profile. Clearcote is fully
open source, so it builds the EME plumbing but cannot bundle Google's proprietary CDM — while
every profile claims the **Google Chrome** brand by default, and Google's build always ships one.
A browser that asserts that brand, implements EME, and then rejects `com.widevine.alpha` describes
a browser Google does not make, readable in a single property lookup (the public audit flags
exactly this). **Auto / On / Off** (0.42.5+; Auto for new profiles): Auto seeds the CDM, except on a
Windows or macOS host with a build before r63, whose CDM sends its licence request with a clear client
id (Chrome encrypts it, and a page can read the difference); the launch says so once, and from r63 Auto
turns DRM on again by itself. On always seeds; Off never does. A profile saved by an older version keeps
its meaning: ticked reads as Auto, unticked as Off. The CDM is downloaded once from Google's own component server —
where real Chrome gets it — SHA-256 verified, and shared across profiles. If you would rather not run
a proprietary blob, set the profile's brand to something other than Chrome instead: a build
reporting **Chromium** is honestly what a de-Googled browser is, and is exempt from the check.
- **HLSL shader dialect** *(Clearcote 151 r15+)* — only for a Windows persona on a **Linux** host. A
page can ask which shader source the graphics backend produced; a Windows persona advertises a
Direct3D11 renderer while Linux's Vulkan backend answers with SPIR-V, and the two contradict each
other. This re-translates for that query alone — rendering is untouched. Off by default: it's a
different code path from the one that drew, so a shader it can't translate falls back to the
honest answer. A no-op on a Windows host.
> **Tip:** the strongest coherence is a captured profile whose **GPU vendor matches your host** + farbling noise **off**.
### geoip
`geoip` resolves the **proxy's** exit region at launch and fills any timezone / Accept-Language /
**geolocation** / WebRTC IP you left unset; anything you set yourself always wins. Leave it off (and
set no location) and the Geolocation API reports the host's real position — geolocation is not
derived from the proxy on its own. The lookup speaks SOCKS5 with authentication directly, so it works
through the same residential proxies the browser uses.
## Run a task on many profiles
Select profiles, choose **Run a task…** and say what to do: "Log in as {{email}} with the password
{{password}} and accept the new terms". [Jet](https://github.com/clearcotelabs/clearcote-jet) works the
task out in the first profile and saves it; the others repeat it **without the model**, each in its own
browser with its own mouse movement and timing. This copies the task, not your clicks, so profiles with
different screens, languages or cookie banners still do the right thing.
- **Setting up Jet, no terminal.** The Run a task dialog and **Settings → Tasks** show a checklist:
Python found, Jet installed, model key working. **Install Jet** runs pip for you (from GitHub, no git
needed; when `clearcote-jet` is not on PATH the app uses `python -m clearcote_jet.cli`), **Check and
save** tests the key before saving it, and a missing Python links to python.org. Only learning a task
uses the model, about $0.001 a task.
- **Try it on one profile first.** On by default for more than one profile: Jet learns the task there,
and once it worked the run board offers **Run on the other N** in one click.
- **Values.** Write `{{email}}` for anything that differs; the chips under the task insert one. Each value
is either **each profile's own** (`{{name}}`, `{{group}}` and `{{tags}}` come with every profile; your
own are **Task values** in the editor, and a profile that lacks one gets a field right in the dialog,
saved to that profile) or **the same for all** for this run, like a search term, which is never written
to the profiles. A **secret** value (a password) is typed only: the run board, exports, the saved task
and Jet's model see its name, never the value.
- **Saved tasks.** **Save as a task** in the dialog, or on the run board after a run worked. The **Tasks**
page lists them, each with its recipe, the values it asks for (switch a value between per profile and
same for all, give it a default or a hint), **the steps Jet took** as a timeline (what it clicked and
typed, learned or replayed, how sure the model was) and every run with its values. **Run** opens the
dialog prefilled; **Run again with these values** repeats a past run. Edit, duplicate, delete (with
undo). A saved task runs again from what Jet learned, so a repeat needs no model.
- **Ask before a click that can't be undone.** On by default: each profile stops before sending, buying,
booking or deleting, and the run board lets you approve them one by one or all at once.
- **Pacing.** How many run at once, and a random wait between starts, so a batch never acts in step.
- **How it connects.** A task's launches open a local DevTools port (`--remote-debugging-port=0`, read
back from `DevToolsActivePort`), and a Jet worker attaches to it. **Settings → Tasks → Allow
automation on every launch** opens it on every launch, for your own SDK or Playwright scripts; while a
profile runs, any program on this PC can use that port. Desktop app only: the web version cannot run
tasks or open the port.
## Revoked certificates
Real Chrome downloads Google's certificate revocation list (CRLSet) in the background, which is how a
distrusted certificate authority stops working within hours, as the eMudhra intermediates revoked on
17 October 2026 did. A Clearcote browser never downloads one by itself. So the app does it: every
launch puts the list into the profile, keeps the first tab on a blank page until the list is active
(about 5 s), and then opens the start page. Without that wait the start page would load before the list
applies. Settings → Browser → **Block certificates Chrome has revoked**, on unless you turn it off.
- The list comes from Google's update server (`update.googleapis.com`), the same one Widevine uses. It
is requested directly from your PC rather than through a profile's proxy, refreshed every 6 hours, and
kept in `~/.clearcote/crlset`, the cache the Clearcote SDKs use too. `CLEARCOTE_CRLSET_FILE` supplies
a file yourself, and `CLEARCOTE_CRLSET_URL` names a mirror.
- The wait uses DevTools over `--remote-debugging-pipe`: two pipes only the app holds, with no network
port. Only the blank tab is inspected, and the app detaches before the start page opens. The browser
closes when the pipe does, so a browser started this way also closes if the app itself exits.
- A profile whose extra arguments include `--disable-component-update` never reads the list; its launch
says so.
## Cloud sessions
A profile can also run on Clearcote's servers instead of this PC. Its card's **Cloud** button starts
it as a [hosted browser](https://www.clearcotelabs.com/) and opens a window where you watch it live and
drive it: click, type, scroll, paste, go back, or open an address.
- **Paid from your Clearcote balance, per GB of traffic,** with an **API key** (`cc_live_…`) from the
dashboard's [API keys](https://www.clearcotelabs.com/dashboard/api-keys) page. It is not the licence
key: the licence runs browsers on this PC, the API key pays for browsers on the servers. Paste it
into **Settings → Cloud** (or set `CLEARCOTE_API_KEY`); **Check** shows your balance.
- **What it carries:** the profile's seed, platform, brand, timezone, languages, browser version and
geoip. Its traffic leaves through the profile's own `http://` or `socks5://` proxy, or the included
residential IP in a country you pick, which stays the same for up to a day. The editor's **Cloud**
section shows the plan before you start, and lists the settings that only apply on this PC.
- **Its cookies are kept** between cloud sessions, in your Clearcote account and separate from this
PC's browser data. Turn that off for an empty browser every time. You can also block ads and
trackers, record each session (watch it in the dashboard), or cap its traffic.
- **When it stops:** Stop on its card or in its window, quitting the app, or 30 minutes with nobody
watching or typing. Closing its window, or keeping the app in the tray, does not stop it. If the
app crashes, it finds the session again when it restarts.
- A profile runs in one place at a time: on this PC or in the cloud.
The API key stays in the app's main process and is sent only to clearcotelabs.com. The live window
gets a link that is valid for a minute, never the key.
## PRO tier (license key)
By default the app launches the **free** Clearcote build. If you have a PRO license, paste your key
into **Settings → PRO license key** (or set `CLEARCOTE_LICENSE_KEY`) — **Check** validates it and shows
your plan + slots in use. It's entirely additive: with **no key** the app is unchanged (free binary,
no contact with the license backend).
With a key set, each launch:
- **downloads the license-gated PRO browser** on demand (via the site's authenticated download route,
cached per build). Every PRO build comes with a release document signed by Clearcote's release key; the
app checks the signature with a public key built into it before it downloads a build, checks the
download's SHA-256 and the SHA-256 of the browser's main files against that document, and hashes those
files again on every launch. A build without a valid document is refused, and an installed build whose
files were changed is downloaded again instead of started. No setting skips the check; and
- **checks out one floating-concurrency slot** — a background heartbeat keeps it alive and the slot is
released when you stop the profile or close the browser.
The PRO engine refuses to launch without a valid run-token, so a copied binary alone won't run. An
explicit binary in Settings still wins over the PRO auto-download; a revoked/expired key surfaces an
error rather than silently falling back to free.
**Pinning an exact build.** With a key set, the **Browser version** dropdown also lists the published
PRO rebuilds (e.g. `151.0.7922.108-r15`). *Latest* and a bare major both follow the current pin, which
moves whenever a rebuild ships — so pin a revision when you need a run to stay reproducible. Each
revision is cached separately, so switching between them doesn't re-download.
The dropdown is built from the public `/api/v1/versions` catalog, so a newly published major appears
without updating this app.
### Chromium 151 (PRO)
151 is the current PRO engine. Three of its changes are visible here:
- **Authenticated SOCKS5 proxies work** (r14). A `socks5://user:pass@host:port` proxy is now
authenticated by the engine itself (RFC 1929), which stock Chromium cannot do at all — no local
relay, no manual prompt. On 149/150 the credentials cannot be carried and the app says so at
launch rather than letting it look like a bad proxy.
- **Portable profiles** (r14) — see **Portable profile** under *Advanced stealth*.
- **HLSL shader dialect** (r15) — opt-in, for running a Windows persona on a Linux host.
Everything else in 151 is engine-side and needs nothing from this app: the reported browser version
now matches the engine it actually is, device-pixel-ratio agrees across JavaScript / request headers
/ image selection, pointer coordinates agree with the reported window position, and one arithmetic
function now matches the operating system the persona claims.
## Stack
Electron · Next.js (App Router) · React · TypeScript · Tailwind CSS · packaged with electron-builder for Windows x64, Linux x64 and macOS (Apple Silicon and Intel) — the browser itself ships on Windows x64, Linux x64 and macOS Apple Silicon.
## Quickstart (once implemented — see PLAN.md Phase 1)
```bash
npm install
npm run dev # Electron shell + Next.js renderer
npm run dist # package for whichever OS you are on
```
## Layout
| Path | What |
|---|---|
| `electron/` | main process — profile storage, binary resolution, browser launch, IPC |
| `electron/fpargs.ts` | **the** profile → Chromium-switch builder, shared by the launcher and the UI preview so the command line you see is the one that runs |
| `electron/cloud*.ts` | cloud sessions: the profile → session plan (`cloudbody.ts`), the hosted API client, the one-time CDP attach that starts a browser, and the session manager; `app/cloud/` is the live window |
| `app/` | Next.js renderer (the UI) |
| `src/types/` | shared data model (`Profile`) |
| `tests/` | vitest unit suite (`npm test`) — see [tests/README.md](tests/README.md) |
| `profiles/` | runtime profile store — JSON per profile + per-profile `userdata/`; git-ignored except the example |
## Screenshots
The README screenshots come from the real desktop app, not the browser preview:
`npm run build`, then `node scripts/screenshots.mjs --binary latest --jet "" --jet-env `
(`latest` needs a licence key; `--binary ` uses that browser). It seeds made-up profiles in a throwaway
data folder, launches two of them, and runs a real task on three, so the run board in the picture is a real run.
Without `--binary` and `--jet` it takes the shots that need neither.
## Packaging (Windows + Linux + macOS)
Releases are cut automatically by [GitHub Actions](.github/workflows/release.yml) when a `v*` tag is pushed: a matrix builds **every** platform on clean runners (`windows-latest`, `ubuntu-latest`, `macos-latest`), then one job collects them → checksums → provenance attestation → a single GitHub Release. Every platform is built on every release, so a release cannot quietly drop one.
To build locally instead:
```bash
npm run make-icon # build/icon.ico + build/icon.png from the brand mark (once)
npm run dist # package for the CURRENT OS → release/
npm run dist:win # Windows: NSIS installer + portable zip
npm run dist:linux # Linux: AppImage + tar.gz
npm run dist:mac # macOS: one .dmg per CPU (arm64, x64), ad-hoc signed
```
`npm run dist` targets the host: on Windows it produces a signed-able NSIS installer plus a **portable build** at `release/win-unpacked/` (zip it and run `Clearcote Profile Manager.exe` directly); on Linux it produces the AppImage and the tarball, alongside `release/linux-unpacked/`; on macOS the two disk images. The macOS app is ad-hoc signed after packing (`scripts/mac-adhoc-sign.cjs`, which needs `codesign`, so a Mac): without it macOS reports the unsigned bundle as damaged. macOS ships disk images only — copies of the app from before macOS existed update to "the first `.zip`" in a release, which must stay the Windows portable one.
> **Do not cross-build the Linux artifacts from Windows.** `--linux tar.gz` appears to succeed there,
> but NTFS has no executable bit, so every file in the tarball comes out `0644` — including
> `clearcote-profile-manager` and `chrome-sandbox`, which makes the unpacked app unrunnable until the
> user chmods it themselves. `--linux AppImage` does not even get that far: it fails on the icon
> symlink with *"A required privilege is not held by the client"* unless Windows Developer Mode is on.
> Build Linux artifacts on Linux — or push the tag and let CI do it, which is why the workflow packages
> each platform on its own native runner.
> **Note — NSIS installer on Windows:** electron-builder fetches `winCodeSign`, whose archive contains macOS symlinks. Extracting them needs symlink privilege, so on Windows **enable Developer Mode** (Settings → For developers) *or* run the build from an elevated shell once; otherwise `electron-builder` errors with *"Cannot create symbolic link"*. The portable `win-unpacked` build does not require this.
## License
BSD-3-Clause — matching the Clearcote project.