mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-10 16:02:25 +01:00
Release builds ask in setup and Settings whether to send a short note when the app is opened and after each drive: the version, plus the Android version, phone model and cars people tick. Nothing runs in the background. Dev builds always send. The Cloudflare Worker in stats-worker/ stores the notes and serves a private dashboard with GitHub downloads alongside.
24 lines
975 B
TOML
24 lines
975 B
TOML
# Gearslip's opt-in usage notes. Deploy with `npx wrangler deploy` from this folder.
|
|
# Setup, once:
|
|
# npx wrangler d1 create gearslip-stats (paste the id it prints below)
|
|
# npx wrangler d1 execute gearslip-stats --remote --file schema.sql
|
|
# npx wrangler secret put SALT (any long random string; keep it)
|
|
# npx wrangler secret put DASHBOARD_KEY (the key for the dashboard link)
|
|
name = "gearslip-stats"
|
|
main = "src/index.js"
|
|
compatibility_date = "2026-10-01"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "gearslip-stats"
|
|
database_id = "201521a7-0b4a-4fff-ab11-d575b821528a"
|
|
|
|
# The public repo whose release downloads the dashboard compares against. If GitHub starts
|
|
# refusing (60 requests an hour without a token), add one: npx wrangler secret put GITHUB_TOKEN
|
|
[vars]
|
|
GITHUB_REPO = "Seb3thehacker/gearslip"
|
|
|
|
# Save the download counts once a day, so the dashboard can show downloads per day.
|
|
[triggers]
|
|
crons = ["17 6 * * *"]
|