Dough Git

commit

AA'

commit
625b05be9732f5fdd0949f89a265c555b528e9a7
author
Clove Twilight <[email protected]>
date
2026-07-31 12:17

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ae41d08..11d13b9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -161,6 +161,16 @@ jobs:
         # in place, so that nested call fails with `Script not found "tauri"`.
         run: bun run tauri android init
 
+      # `gen/android` is wiped and regenerated by `android init` above, which
+      # ships Tauri's DEFAULT launcher icon. Our real icons live in the repo at
+      # icons/android/ — re-apply them over the generated res/ dir (same reason
+      # signing has to be re-patched below: nothing in gen/ is committed).
+      - name: apply Android app icons
+        working-directory: apps/desktop/src-tauri
+        # `cp -r src/. dest/` merges contents into the existing res/ dirs
+        # (overwriting the default icons) instead of nesting them.
+        run: cp -r icons/android/. gen/android/app/src/main/res/
+
       # Inject the release signingConfig into the freshly generated
       # build.gradle.kts, then write keystore.properties + the decoded keystore
       # from repo secrets so the release build signs automatically.
diff --git a/apps/server/src/server.ts b/apps/server/src/server.ts
index 589239b..cc1ef7a 100644
--- a/apps/server/src/server.ts
+++ b/apps/server/src/server.ts
@@ -97,6 +97,12 @@ app.get("/app.js", () => serveFile(join(webDist, "app.js"), "no-cache"));
 app.get("/styles.css", () => serveFile(join(webSrc, "styles.css"), "no-cache"));
 app.get("/favicon.png", () => serveFile(join(serverPublic, "favicon.png")));
 
+// Vanity redirect to the source repo. Must sit before the SPA catch-all
+// below, or the `*` route would swallow it and serve index.html instead.
+app.get("/download", (c) =>
+  c.redirect("https://github.com/doughmination/pocket-id-music-player/", 302),
+);
+
 // SPA fallback: any non-API route returns index.html. Also no-cache, so a
 // stale shell can't keep pointing the webview at an old asset.
 app.get("*", () => serveFile(join(webSrc, "index.html"), "no-cache"));
diff --git a/apps/web/src/index.html b/apps/web/src/index.html
index 99f48f5..c907437 100644
--- a/apps/web/src/index.html
+++ b/apps/web/src/index.html
@@ -3,7 +3,28 @@
   <head>
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
-    <title>Music</title>
+    <title>Doughmination Music</title>
+
+    <!-- Link unfurls (Discord, Twitter/X, iMessage, Slack…). Bots don't run
+         JS, so these live in the static shell. theme-color is what Discord
+         uses for the embed's coloured accent bar. -->
+    <meta name="theme-color" content="#f5a9b8" />
+    <meta name="description" content="Self-hosted music streaming — your library, your server." />
+
+    <meta property="og:site_name" content="Doughmination Music" />
+    <meta property="og:type" content="website" />
+    <meta property="og:title" content="Doughmination Music" />
+    <meta property="og:description" content="Self-hosted music streaming — your library, your server." />
+    <meta property="og:url" content="https://doughmination.me/" />
+    <meta property="og:image" content="https://doughmination.me/favicon.png" />
+    <meta property="og:image:width" content="640" />
+    <meta property="og:image:height" content="640" />
+
+    <meta name="twitter:card" content="summary" />
+    <meta name="twitter:title" content="Doughmination Music" />
+    <meta name="twitter:description" content="Self-hosted music streaming — your library, your server." />
+    <meta name="twitter:image" content="https://doughmination.me/favicon.png" />
+
     <link rel="icon" type="image/png" href="/favicon.png" />
     <link rel="apple-touch-icon" href="/favicon.png" />
     <link rel="preconnect" href="https://fonts.doughmination.co.uk" crossorigin />