CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

feat: voxlenApiKey keychain + flywheel vocabulary sync to Voxlen API #4772

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/error-boundaries-saganmainopened Jun 3, 20260/5 tasks
1 changed file+18−0
Modifiedlanding/src/App.tsx+18−0View fileUnifiedSplit
817817}
818818
819819const GH_RELEASES = "https://github.com/ccantynz-alt/voxlen/releases/latest/download";
820const GH_RELEASES_PAGE = "https://github.com/ccantynz-alt/voxlen/releases/latest";
821const GH_API_LATEST = "https://api.github.com/repos/ccantynz-alt/voxlen/releases/latest";
820822const APP_VERSION = "1.0.9";
821823
824interface ReleaseAsset {
825 name: string;
826 browser_download_url: string;
827 size: number;
828}
829
830function pickAssetFor(platform: Exclude<Platform, "unknown">, assets: ReleaseAsset[]): ReleaseAsset | null {
831 const matchers: Record<Exclude<Platform, "unknown">, RegExp> = {
832 "mac-arm": /aarch64.*\.dmg$|arm64.*\.dmg$/i,
833 "mac-intel": /x64.*\.dmg$|x86_64.*\.dmg$/i,
834 windows: /\.msi$|setup.*\.exe$/i,
835 linux: /\.AppImage$/i,
836 };
837 return assets.find((a) => matchers[platform]?.test(a.name)) ?? null;
838}
839
822840type Platform = "mac-arm" | "mac-intel" | "windows" | "linux" | "unknown";
823841
824842function detectPlatform(): Platform {
825843
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts