Branchwell

Jotley / website · jotley.ai / src / app / download / page.tsx

1import '../components/home/home.css';
2import Image from 'next/image';
3import Link from 'next/link';
4import { Play } from 'lucide-react';
5import releaseManifest from '../../../public/mac-release.json';
6import { pageMetadata } from '@/lib/site-metadata';
7import DownloadButton from './DownloadButton';
8import TestFlightButton from '../components/TestFlightButton';
9import SiteHeader from '../components/SiteHeader';
10import SiteFooter from '../components/SiteFooter';
11import AppleIntelligenceRequirements from '../components/AppleIntelligenceRequirements';
12
13export const metadata = pageMetadata('download');
14
15type MacRelease = { version: string; build: number; file: string; bytes: number; sha256: string };
16
17/** Mac installers live in the jotley-media R2 bucket; see "Mac distribution" in README.md. */
18const INSTALLERS = 'https://media.jotley.ai/downloads';
19
20async function getRelease(): Promise<MacRelease> {
21 // The website download can advance independently of the signed Sparkle feed.
22 const release = releaseManifest;
23 if (!/^\d+(\.\d+){1,2}$/.test(release.version) || !Number.isSafeInteger(release.build) || release.build < 1 ||
24 release.file !== `Jotley-${release.version}-${release.build}.dmg` || !/^[a-f0-9]{64}$/.test(release.sha256) ||
25 !Number.isSafeInteger(release.bytes) || release.bytes < 1) {
26 throw new Error('The Mac release manifest is invalid.');
27 }
28 const installer = await fetch(`${INSTALLERS}/${release.file}`, { method: 'HEAD' });
29 if (!installer.ok || Number(installer.headers.get('content-length')) !== release.bytes) {
30 throw new Error(`The Mac installer does not match the release manifest: ${release.file}`);
31 }
32 return release;
33}
34
35function formatMegabytes(bytes: number) {
36 return `${(bytes / 1_000_000).toFixed(1)} MB`;
37}
38
39type Mark = { x: number; y: number; label?: string };
40
41/** A real installation screenshot on a desktop-style stage, with markers on what to click. */
42function Shot({ src, width, height, alt, caption, marks, installer = false }: { src: string; width: number; height: number; alt: string; caption: string; marks: Mark[]; installer?: boolean }) {
43 return (
44 <figure className={`dl-shot${installer ? ' dl-shot--installer' : ''}`}>
45 <div className="dl-shot-stage">
46 <div className="dl-shot-frame">
47 {/* served as-is: real installation captures retain their original pixels */}
48 <Image src={src} alt={alt} width={width} height={height} unoptimized />
49 {marks.map((mark) => (
50 <span key={`${mark.x}-${mark.y}`} className="dl-mark" style={{ left: `${mark.x}%`, top: `${mark.y}%` }} aria-hidden="true">
51 <i />
52 {mark.label && <b>{mark.label}</b>}
53 </span>
54 ))}
55 </div>
56 </div>
57 <figcaption>{caption}</figcaption>
58 </figure>
59 );
60}
61
62const CheckIcon = (
63 <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2.6} aria-hidden="true">
64 <path d="M5 13l4 4L19 7" strokeLinecap="round" strokeLinejoin="round" />
65 </svg>
66);
67
68export default async function DownloadPage() {
69 const release = await getRelease();
70 const fileName = release.file;
71 const downloadUrl = `/${fileName}`;
72
73 return (
74 <div className="jt-home flex min-h-screen flex-col" data-testid="page-surface">
75 <SiteHeader />
76
77 <main className="dl flex-1">
78 {/* ============ HERO + STEP 1 ============ */}
79 <section className="dl-hero">
80 <div className="hero-bg" aria-hidden="true" />
81 <div className="wrap dl-hero-in">
82 <div className="dl-hero-copy">
83 <div className="hero-eyebrow"><span className="dot" aria-hidden="true" />Notes {release.version} for Mac</div>
84 <h1>How to Install <span className="accent">Notes for Mac</span></h1>
85 <p className="dl-sub">
86 Notes for Mac captures <b>all audio on your system</b>, browser audio, app audio, and your microphone, simultaneously. No meeting bots, no browser extensions.
87 </p>
88 <ul className="dl-reqs" aria-label="Requirements">
89 <li>Free, with no subscription</li>
90 <li><Link href="#apple-intelligence">Apple Intelligence required</Link></li>
91 <li>Apple silicon</li>
92 <li>macOS 27 or later</li>
93 </ul>
94 </div>
95
96 <article className="dl-card" aria-labelledby="dl-step-1">
97 <div className="dl-card-head">
98 <span className="dl-step-n" aria-hidden="true">1</span>
99 <div>
100 <h2 id="dl-step-1">Download the Installer</h2>
101 <p>Click below to download the installer, then follow the steps below.</p>
102 </div>
103 </div>
104
105 <div className="dl-file">
106 <img src="/jotley-logo.png" alt="" className="dl-file-icon" />
107 <div className="dl-file-meta">
108 <b>{fileName}</b>
109 <span>{formatMegabytes(release.bytes)} · Version {release.version} ({release.build})</span>
110 </div>
111
112 </div>
113
114 <DownloadButton downloadUrl={downloadUrl} className="dl-download">
115 <svg width={17} height={17} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z" /></svg>
116 Download Notes for Mac
117 </DownloadButton>
118
119 <ul className="dl-trust">
120 <li>{CheckIcon}Code signed</li>
121 <li>{CheckIcon}Notarized by Apple</li>
122 <li>{CheckIcon}Signed updates</li>
123 </ul>
124
125 <details className="dl-verify">
126 <summary>Verify the download</summary>
127 <p>In Terminal, run <code>shasum -a 256 ~/Downloads/{release.file}</code> and compare the result with this SHA-256:</p>
128 <code className="dl-sha">{release.sha256}</code>
129 </details>
130 </article>
131 </div>
132 </section>
133
134 {/* ============ STEPS 2 + 3 ============ */}
135 <section className="dl-steps-sec" aria-label="Installation steps">
136 <div className="wrap">
137 <ol className="dl-steps">
138 <li className="dl-step">
139 <div className="dl-step-copy">
140 <span className="dl-step-n" aria-hidden="true">2</span>
141 <h2>Open DMG, Drag to Applications &amp; Launch</h2>
142 <p>
143 Once downloaded, open the Jotley DMG file. Drag Jotley onto the Applications shortcut. When copying is complete, eject the disk image and open Jotley from your Applications folder.
144 </p>
145 </div>
146 <div className="dl-shots">
147 <Shot src="/install-step-2a.png" width={352} height={223} alt="Jotley DMG file in Downloads folder" caption="Open the DMG from your Downloads folder" marks={[{ x: 47, y: 46, label: 'Double-click' }]} />
148 <Shot src="/install-jotley.png" width={832} height={632} alt="Jotley installer window, showing the app icon, Applications shortcut, and instructions to drag Jotley into Applications" caption="Drag Jotley onto Applications, then eject the disk image" marks={[]} installer />
149 </div>
150 </li>
151
152 <li className="dl-step">
153 <div className="dl-step-copy">
154 <span className="dl-step-n" aria-hidden="true">3</span>
155 <h2>Confirm Opening &amp; Grant Permissions</h2>
156 <p>
157 Notes is code signed and notarized by Apple. If macOS asks you to confirm opening it, click &quot;Open&quot;. When you start transcribing, allow microphone and system-audio access when prompted.
158 </p>
159 </div>
160 <div className="dl-shots">
161 <Shot src="/install-step-3.png" width={318} height={345} alt="Confirm opening Jotley" caption="Click Open to launch Jotley" marks={[{ x: 68, y: 82, label: 'Open' }]} />
162 <Shot src="/install-step-5.png" width={348} height={335} alt="Jotley microphone access prompt" caption="Allow access when you first transcribe" marks={[{ x: 66, y: 80, label: 'Allow' }]} />
163 </div>
164 </li>
165 </ol>
166
167 <div className="dl-done">
168 <span className="dl-done-icon">
169 <img src="/jotley-logo.png" alt="" />
170 <i aria-hidden="true">{CheckIcon}</i>
171 </span>
172 <h2>Installation Complete!</h2>
173 <p>You have successfully installed Jotley. Enjoy using the app!</p>
174 <div className="dl-done-actions">
175 <Link href="/#walkthrough" className="btn btn-ghost"><Play size={18} aria-hidden="true" />Watch the walkthrough</Link>
176 <TestFlightButton location="download_page" />
177 </div>
178 </div>
179 </div>
180 </section>
181
182 <div className="ai-requirements-band">
183 <div className="wrap"><AppleIntelligenceRequirements /></div>
184 </div>
185 </main>
186
187 <SiteFooter />
188 </div>
189 );
190}