134c6a167c
CC1: customCommandEnabled→enableCustomCommands, downloadArchive→ useDownloadArchive, clipboardWatch→watchClipboard, sidebarCollapsed→ isSidebarCollapsed, hardwareAcceleration→useHardwareAcceleration, videoDir/audioDir→videoFolder/audioFolder (+ chooseDir/clearDir store actions → chooseFolder/clearFolder). Rename map in settingsMigration.ts (pure, unit-tested incl. pre-rename backup fixture), applied as an idempotent on-disk shim at store open and on backup import so old settings.json and old backups both keep working. CC11: update host/owner/repo + release API moved to src/main/config.ts. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
16 lines
844 B
TypeScript
16 lines
844 B
TypeScript
/**
|
|
* Build/host configuration (CC11): the deploy-specific constants that identify
|
|
* WHERE this build talks to, separated from runtime tunables (constants.ts —
|
|
* timeouts, caps, tickers) and from user settings (settings.ts). Retarget a
|
|
* fork's update source by editing these three values.
|
|
*
|
|
* IMPORTANT: the update repo's releases must be ANONYMOUSLY readable — i.e. a
|
|
* public repo on a Gitea instance that permits anonymous API + downloads.
|
|
* AeroFetch never ships a token; on a sign-in-required instance the update
|
|
* check simply reports that it couldn't reach the server.
|
|
*/
|
|
export const UPDATE_HOST = 'https://gitea.netbird.zimspace.uk:5938'
|
|
export const UPDATE_OWNER = 'debont80'
|
|
export const UPDATE_REPO = 'AeroFetch'
|
|
export const RELEASE_API = `${UPDATE_HOST}/api/v1/repos/${UPDATE_OWNER}/${UPDATE_REPO}/releases/latest`
|