Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/app/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export default function Docs(){
<h3>Windows 10 and 11</h3>
<p>The easiest way is the <a href="https://apps.microsoft.com/detail/XP8LKHC447THM1">Microsoft Store</a>: click <strong>Get</strong> and Veyra installs and opens, verified by Microsoft. You can also run the <code>.exe</code> installer from the download page (or the <code>.msi</code> for managed installs). The direct installer isn&apos;t signed with a Microsoft certificate yet, so SmartScreen may say <em>&quot;Windows protected your PC&quot;</em>: choose <strong>More info → Run anyway</strong>.</p>
<h3>macOS 11 or newer</h3>
<p>Choose the <code>.dmg</code> for <strong>Apple silicon</strong> (M1 and later) or <strong>Intel</strong>, then drag <strong>Veyra Studio</strong> into Applications. The first time, <strong>right-click → Open</strong>, or allow it in <strong>System Settings → Privacy &amp; Security → Open Anyway</strong>.</p>
<Note warn>If macOS says the app &quot;is damaged and can&apos;t be opened&quot;, run this once in Terminal, then open it again: <code>xattr -cr &quot;/Applications/Veyra Studio.app&quot;</code></Note>
<p>Choose the <code>.dmg</code> for <strong>Apple silicon</strong> (M1 and later) or <strong>Intel</strong>, then drag <strong>Veyra Studio</strong> into Applications and open it. Veyra is signed and notarized by Apple, so it opens without warnings.</p>
<Note>Using a version older than 0.12.1? Update to the latest version: older Mac builds weren&apos;t notarized and needed right-click → Open the first time.</Note>
<h3>Linux</h3>
<p>Use the <code>.AppImage</code> on any 64-bit distribution (<code>chmod +x</code> it, then run it), or install the <code>.deb</code> (Debian, Ubuntu) or <code>.rpm</code> (Fedora, openSUSE) package. Veyra needs WebKitGTK 4.1 and glibc 2.35 or newer.</p>
</section>
Expand Down
2 changes: 1 addition & 1 deletion website/app/download/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default async function DownloadPage(){
<div><b>Automatic updates</b><span className="trust-ok">Cryptographically signed</span><p>Every update is signed with Veyra's update key, and installed copies verify the signature before installing anything.</p></div>
<div><b>Microsoft Store</b><span className="trust-ok">Verified by Microsoft</span><p>Install from the <a href={MS_STORE_URL}>Microsoft Store</a> for a one-click install with no SmartScreen warning.</p></div>
<div><b>Windows direct download</b><span className="trust-warn">Not signed yet</span><p>The .exe and .msi on this page aren't signed with a Microsoft code-signing certificate yet, so SmartScreen may warn on first run: choose More info → Run anyway.</p></div>
<div><b>Apple notarization</b><span className="trust-warn">Not yet (preview)</span><p>The app isn't notarized by Apple yet. The first time, right-click Veyra Studio → Open (see the <a href="/docs#install">install guide</a>).</p></div>
<div><b>Apple notarization</b><span className="trust-ok">Notarized by Apple</span><p>The Mac app is signed with an Apple Developer ID and notarized by Apple, so it opens without warnings, like any app from a known developer.</p></div>
<div><b>Built in public</b><span className="trust-ok">GitHub Actions</span><p>Every release is built from the open-source code by GitHub Actions. Compare the SHA-256 checksums below with your download.</p></div>
</div>
{sums.length>0&&<details className="checksums"><summary>SHA-256 checksums for v{release?.version}</summary>
Expand Down
18 changes: 18 additions & 0 deletions website/lib/releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ const releaseSignal = () => AbortSignal.timeout(Number(process.env.RELEASE_FETCH

/** The latest release of Veyra, or of another repository such as fcopensource/salesforce-studio. */
export async function latestRelease(repo = REPO): Promise<Release | null> {
const fromApi = await releaseFromApi(repo);
// The GitHub API is rate-limited (60 requests an hour without a token) and the host sometimes blocks it; the
// download page then kept showing an old version. Veyra's signed update manifest is a plain download, so use it.
return fromApi || (repo === REPO ? releaseFromManifest(await updateManifest()) : null);
}

/** Veyra's release from its update manifest (latest.json): the version and the installers it lists, plus the .dmg files,
* which Tauri names the same way. Sizes and checksums aren't in the manifest, so they're left out. */
export function releaseFromManifest(manifest: Manifest | null): Release | null {
if (!manifest?.version) return null;
const urls = new Set(Object.values(manifest.platforms || {}).map(p => p.url).filter(url => url && !url.endsWith(".tar.gz")));
const base = `https://github.com/${REPO}/releases/download/v${manifest.version}/`;
for (const arch of ["aarch64", "x64"]) urls.add(`${base}Veyra.Studio_${manifest.version}_${arch}.dmg`);
const assets = [...urls].map(url => ({ name: decodeURIComponent(url.split("/").pop() || ""), browser_download_url: url, size: 0, digest: null }));
return { version: manifest.version, publishedAt: manifest.pub_date || "", assets };
}

async function releaseFromApi(repo: string): Promise<Release | null> {
try {
const response = await fetch(`https://api.github.com/repos/${repo}/releases/latest`, {
headers: { Accept: "application/vnd.github+json", ...(process.env.GITHUB_TOKEN ? { Authorization: `Bearer ${process.env.GITHUB_TOKEN}` } : {}) },
Expand Down
2 changes: 1 addition & 1 deletion website/lib/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const FAQ_GROUPS: { title: string; items: QA[] }[] = [
{ title: "Install & updates", items: [
{ q: "How do updates work?", a: "Veyra checks for new versions automatically. When one is ready, the Sign in button in the top-right corner turns into Update: click it, and Veyra installs the update and restarts. Updates are cryptographically signed and verified before installing, and Veyra asks before closing unsaved work. Help → Check for Updates checks right away." },
{ q: "Windows says \"Windows protected your PC\". Is Veyra safe?", a: "Yes. Install Veyra from the Microsoft Store to avoid the warning entirely: the Store version is verified by Microsoft and installs in one click. The installer downloaded directly from this site isn't signed with a Microsoft certificate yet, so SmartScreen may warn on first run; choose More info → Run anyway. Every release is built publicly on GitHub Actions from the open-source code." },
{ q: "macOS says the app is damaged. What do I do?", a: "Run xattr -cr \"/Applications/Veyra Studio.app\" once in Terminal, then open Veyra again. On newer versions, right-click the app and choose Open the first time." },
{ q: "Does Veyra open on a Mac without warnings?", a: "Yes. Since version 0.12.1, Veyra for Mac is signed with an Apple Developer ID and notarized by Apple, for both Apple silicon and Intel, so it opens like any app from a known developer. Older versions weren't notarized: if you still have one, download the latest version." },
]},
];
export const FAQ: QA[] = FAQ_GROUPS[0].items;
Loading