Files
quiver-launcher/e2e/build.js
T
Thomas Georgiadis ba7702293f Send the launcher's usage data to Google Analytics and its errors to Sentry (#287)
Replaces PostHog. Events go in batches to the website's /api/launcher/usage,
which keeps Google's secret, under a random id for the computer that's replaced
when usage data is turned off. Nothing is linked to a Quiver account any more.

Where the website asks first (the EU, UK and Switzerland, or if that can't be
found out), nothing is sent until the player allows it.
2026-11-04 13:08:42 +11:00

13 lines
496 B
JavaScript

/**
* Builds the app for the journeys (a debug build, no installer) with usage data
* on, as in a release; session.js sends it to the mock API.
*/
import { spawnSync } from "node:child_process";
const { status } = spawnSync("pnpm", ["--filter", "@quiver/launcher", "tauri", "build", "--debug", "--no-bundle"], {
stdio: "inherit",
shell: process.platform === "win32",
env: { ...process.env, VITE_USAGE_DATA: "1", VITE_USAGE_DEV: "", VITE_SENTRY_DSN: "" },
});
process.exit(status ?? 1);