-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
45 lines (42 loc) · 2.29 KB
/
Copy path.env.example
File metadata and controls
45 lines (42 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Winthorpe build-time environment variables.
#
# These are read by src-tauri/build.rs and baked into the binary at compile
# time (cargo:rustc-env). Override locally by copying this file to .env.local
# (which is gitignored) and replacing the values.
#
# After changing .env.local, you MUST rebuild:
# bun run dev:win # or `bun run dev` inside a Developer PowerShell
# -----------------------------------------------------------------------------
# GitHub OAuth (Device Flow)
# -----------------------------------------------------------------------------
# Client ID for the GitHub OAuth App that backs the in-app "Connect GitHub"
# button. Required for any GitHub identity-related feature.
#
# Setup (one-time):
# 1. Go to https://github.com/settings/developers (personal) or your
# organization's developer settings.
# 2. Click "New OAuth App".
# 3. Application name: Winthorpe (or whatever you prefer)
# Homepage URL: any valid URL (used in the GitHub OAuth UI only)
# Authorization callback: http://localhost (Device Flow ignores it,
# but GitHub requires the field to be filled)
# 4. After creation: in the app's settings page, check "Enable Device Flow".
# 5. Copy the Client ID and put it in your local .env.local.
# Device Flow does NOT need a client secret.
# 6. Rebuild: `bun run dev:win`
#
# Scopes requested at runtime (you do NOT configure these on the OAuth app):
# repo, read:org, user:email
#
# This file ships with a deliberately invalid placeholder so that committing
# a build without configuring .env.local fails loudly rather than silently
# authenticating against someone else's OAuth app.
WINTHORPE_GITHUB_CLIENT_ID=REPLACE_WITH_YOUR_GITHUB_OAUTH_CLIENT_ID
# -----------------------------------------------------------------------------
# Auto-updater
# -----------------------------------------------------------------------------
# `latest.json` endpoint used by tauri-plugin-updater to discover new releases.
WINTHORPE_UPDATER_ENDPOINTS=https://github.com/plsft/winthorpe/releases/latest/download/latest.json
# Minisign public key used to verify downloaded update artifacts. Replace
# with your own when you generate a fresh signing key (see docs/release-secrets.md).
WINTHORPE_UPDATER_PUBKEY=your_tauri_updater_public_key