docs(readme,landing): introduce the desktop app (#201)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Yaowei Zheng
2026-08-05 00:21:15 +08:00
committed by GitHub
parent e0f6b122c8
commit 1cf0e4d9bc
21 changed files with 342 additions and 17 deletions
+7 -2
View File
@@ -14,7 +14,12 @@ import { execSync } from "node:child_process";
import { cpSync, rmSync, writeFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
import { absoluteUrl, blogRoutes, docsRoutes } from "../packages/landing/scripts/site-routes.mjs";
import {
absoluteUrl,
blogRoutes,
docsRoutes,
pageRoutes,
} from "../packages/landing/scripts/site-routes.mjs";
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
const base = process.env.BASE_PATH ?? "/";
@@ -40,7 +45,7 @@ cpSync(join(root, "packages", "docs", "dist"), docsTarget, { recursive: true });
// that has to name routes from both sites. It is also the only way a crawler learns
// those routes — both pages ship an empty <div id="root"> and build their navigation
// in JS, so following links is not an option.
const routes = [{ route: "/" }, ...blogRoutes(), ...docsRoutes()];
const routes = [{ route: "/" }, ...pageRoutes(), ...blogRoutes(), ...docsRoutes()];
const sitemap = [
'<?xml version="1.0" encoding="UTF-8"?>',
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
+14
View File
@@ -71,6 +71,17 @@ penguin-darwin-arm64.tar.gz
penguin-universal.tar.gz
penguin-win32-x64.zip
"
# Desktop installers carry version-less names (see packages/desktop/electron-builder.yml)
# and are verified as a set through SHA256SUMS.desktop instead of per-file .sha256 twins.
DESKTOP_INSTALLERS="
penguin-desktop-darwin-arm64.dmg
penguin-desktop-darwin-arm64.zip
penguin-desktop-darwin-x64.dmg
penguin-desktop-darwin-x64.zip
penguin-desktop-linux-x64.AppImage
penguin-desktop-linux-x64.deb
penguin-desktop-win32-x64.exe
"
FILES="$BUNDLES
penguin-linux-x64.tar.gz.sha256
penguin-linux-arm64.tar.gz.sha256
@@ -79,6 +90,8 @@ penguin-darwin-arm64.tar.gz.sha256
penguin-universal.tar.gz.sha256
penguin-win32-x64.zip.sha256
SHA256SUMS
$DESKTOP_INSTALLERS
SHA256SUMS.desktop
install.sh
install.ps1
"
@@ -94,6 +107,7 @@ for bundle in $BUNDLES; do
(cd "$RELEASE_DIR" && sha256sum -c "$bundle.sha256")
done
(cd "$RELEASE_DIR" && sha256sum -c SHA256SUMS)
(cd "$RELEASE_DIR" && sha256sum -c SHA256SUMS.desktop)
WORK_DIR="$(mktemp -d)"
trap 'rm -rf "$WORK_DIR"' EXIT