diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index cc5f25e..6ecd45f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -6,11 +6,10 @@ on: jobs: build: - # RN/NDK builds starve the 4-core VPS, so `desktop` (marcusDesktop) is the - # preferred runner — but jobs queue while the desktop is off. On - # ubuntu-latest the VPS builds immediately; flip back when the desktop is - # reliably online. - runs-on: ubuntu-latest + # RN/NDK builds starve the 4-core VPS, and the VPS runner was retired on + # 2026-11-20 (it held the host's docker socket), so build on the desktop + # runner (marcusDesktop). Jobs queue while the desktop is off. + runs-on: desktop container: image: eclipse-temurin:21-jdk steps: diff --git a/README.md b/README.md index 00ae8d0..73eaf1c 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ release — install via Obtainium. `android/app/build.gradle` keeps literal `versionCode`/`versionName`; CI stamps the run number in with `sed` before building. Keystore: `~/.android-keys/kegel-release.jks` (repo secrets `KEYSTORE_B64`, `KEYSTORE_PASSWORD`; alias `kegel`). Beware: `expo prebuild -p android` -(used to regenerate launcher icons from `store/icons/make.js`) rewrites +(used to regenerate launcher icons + the adaptive background from `store/icons/make.js`) rewrites `build.gradle` and drops the release `signingConfigs` block — restore it from git. ### App Store / Google Play (EAS) diff --git a/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png b/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png index 3c4849c..190770b 100644 Binary files a/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png and b/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png differ diff --git a/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png b/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png index 018ba02..0d50fcf 100644 Binary files a/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png and b/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png b/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png index c954a74..d2dbd6b 100644 Binary files a/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png and b/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png b/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png index 10f2f0e..976c318 100644 Binary files a/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png and b/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png b/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png index e8c7fd5..d9c3923 100644 Binary files a/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png and b/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png differ diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml index d6dc75a..9764d2a 100644 --- a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml index d6dc75a..9764d2a 100644 --- a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp index 141d02c..41f6523 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.webp b/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.webp new file mode 100644 index 0000000..d1f0077 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.webp differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp index 639bf24..ed28e43 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp b/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp index 51609fc..27f4d7a 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp index c9f9d98..9497c61 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp index 23eba94..bf63753 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.webp b/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.webp new file mode 100644 index 0000000..6ce6b4a Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.webp differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp index e82ede6..d6114fb 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp b/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp index d31d46f..3ad93f3 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp index 4a339b7..992b414 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp index 00fae44..08a3386 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.webp b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.webp new file mode 100644 index 0000000..af879f0 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.webp differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp index 19c06b3..5645a8d 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp index 17edfe4..5ded7d2 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp index 1abd6db..e8f1a94 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp index 3a74f4f..ff7fc0d 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp new file mode 100644 index 0000000..bdc1068 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp index f2e77f7..3f3b4cc 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp index 3320d72..d46d238 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp index f925170..d7a03c2 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp index 0e41126..219763d 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp new file mode 100644 index 0000000..d206da8 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp index 6d42a7f..b71cc50 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp index f66f101..085dd87 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp index 749361c..2acdbb4 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/app.json b/app.json index b01e9c7..ad2a1fc 100644 --- a/app.json +++ b/app.json @@ -19,7 +19,8 @@ "adaptiveIcon": { "backgroundColor": "#160B0B", "foregroundImage": "./assets/images/android-icon-foreground.png", - "monochromeImage": "./assets/images/android-icon-monochrome.png" + "monochromeImage": "./assets/images/android-icon-monochrome.png", + "backgroundImage": "./assets/images/android-icon-background.png" }, "predictiveBackGestureEnabled": false, "package": "com.marcus.kegel" diff --git a/assets/images/android-icon-background.png b/assets/images/android-icon-background.png new file mode 100644 index 0000000..827b7a5 Binary files /dev/null and b/assets/images/android-icon-background.png differ diff --git a/assets/images/android-icon-foreground.png b/assets/images/android-icon-foreground.png index be04735..7177e62 100644 Binary files a/assets/images/android-icon-foreground.png and b/assets/images/android-icon-foreground.png differ diff --git a/assets/images/android-icon-monochrome.png b/assets/images/android-icon-monochrome.png index ecfa868..f058034 100644 Binary files a/assets/images/android-icon-monochrome.png and b/assets/images/android-icon-monochrome.png differ diff --git a/assets/images/icon.png b/assets/images/icon.png index 2b46e03..b022805 100644 Binary files a/assets/images/icon.png and b/assets/images/icon.png differ diff --git a/assets/images/splash-icon.png b/assets/images/splash-icon.png index 02ee0ae..5338522 100644 Binary files a/assets/images/splash-icon.png and b/assets/images/splash-icon.png differ diff --git a/store/icons/make.js b/store/icons/make.js index e0904f2..6087871 100644 --- a/store/icons/make.js +++ b/store/icons/make.js @@ -5,13 +5,16 @@ // // Writes into assets/images/: // icon.png 1024×1024 opaque (iOS + fallback) -// android-icon-foreground.png 1024×1024 alpha (adaptive foreground, mark in the 66% safe zone) +// android-icon-background.png 1024×1024 opaque (adaptive background: ember glow) +// android-icon-foreground.png 1024×1024 alpha (adaptive foreground, mark in the 66dp safe zone) // android-icon-monochrome.png 1024×1024 alpha (themed icon, white mark) // splash-icon.png 512×512 alpha (splash, mark only) // -// The mark is the session ring from the app: a thick accent ring with a filled -// core — "squeeze". Colours from src/lib/theme.ts. After running, regenerate the -// committed Android res with `npx expo prebuild -p android --no-install`. +// The mark is the hold ring from the session screen: an open ring whose colour +// sweeps from a dim ember tail to a hot amber head (the hold timer mid-squeeze), +// around a glowing core: "squeeze". Colours from src/lib/theme.ts. After running, +// regenerate the committed Android res with `npx expo prebuild -p android --no-install` +// and restore the release signingConfigs block in android/app/build.gradle from git. const fs = require("fs"); const path = require("path"); @@ -21,37 +24,80 @@ const CHROME = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"; const OUT = path.join(__dirname, "..", "..", "assets", "images"); const TMP = path.join(__dirname, ".tmp"); -const C = { bg: "#160B0B", bg2: "#2A1112", accent: "#E7402E", accentDeep: "#B8271A", text: "#F7ECEA" }; +const C = { bg: "#160B0B", glow: "#3B1612", edge: "#0D0606" }; +// ring colour along the sweep: tail → head +const SWEEP = [[0, "#9E2418"], [0.5, "#DE3A2B"], [0.82, "#F6612F"], [1, "#FFA94D"]]; +const RING = { start: 38, sweep: 292 }; // degrees clockwise from 12 o'clock; the gap sits over the top -// size: canvas px; scale: fraction of canvas the mark spans; color overrides for monochrome. -function mark(size, scale, { ring = C.accent, core = C.accent, glow = true } = {}) { +const hex = (h) => [1, 3, 5].map((i) => parseInt(h.slice(i, i + 2), 16)); +function mix(t) { + for (let i = 0; i < SWEEP.length - 1; i++) { + const [p0, c0] = SWEEP[i]; + const [p1, c1] = SWEEP[i + 1]; + if (t <= p1) { + const k = p1 === p0 ? 0 : (t - p0) / (p1 - p0); + const [a, b] = [hex(c0), hex(c1)]; + return "#" + a.map((x, j) => Math.round(x + (b[j] - x) * k).toString(16).padStart(2, "0")).join(""); + } + } + return SWEEP[SWEEP.length - 1][1]; +} +const pt = (c, r, deg) => { + const a = ((deg - 90) * Math.PI) / 180; + return [c + r * Math.cos(a), c + r * Math.sin(a)]; +}; +const f = (n) => n.toFixed(2); + +function background(size) { + return ` + + `; +} + +// size: canvas px; scale: fraction of the canvas the ring spans. +function mark(size, scale, { mono = false, glow = true } = {}) { const c = size / 2; - const R = (size * scale) / 2; // outer radius of the ring - const stroke = R * 0.3; - const ringR = R - stroke / 2; - const coreR = R * 0.32; + const R = (size * scale) / 2; // outer radius + const sw = R * 0.3; + const rr = R - sw / 2; + const core = R * 0.3; + const { start, sweep } = RING; + if (mono) { + const [x0, y0] = pt(c, rr, start); + const [x1, y1] = pt(c, rr, start + sweep); + return ``; + } + // SVG has no sweep gradient: draw the arc as short segments, each in its own colour. + const n = 180; + let ring = ""; + for (let i = 0; i < n; i++) { + const [x0, y0] = pt(c, rr, start + (sweep * i) / n); + const [x1, y1] = pt(c, rr, start + (sweep * (i + 1)) / n + 0.6); // slight overlap hides seams + ring += ``; + } + const [tx, ty] = pt(c, rr, start); + const [hx, hy] = pt(c, rr, start + sweep); + ring += ``; return ` - - - - + + + + + + - ${glow ? `` : ""} - - - `; + ${glow ? `${ring} + + ` : ""} + ${ring} + + `; } -function svg(size, body, bg) { - return ` - ${bg ? ` - - ` : ""} - ${body} - `; -} +const svg = (size, body) => + `${body}`; function render(svgText, size, out, transparent) { fs.mkdirSync(TMP, { recursive: true }); @@ -70,16 +116,17 @@ function render(svgText, size, out, transparent) { } function main() { - // iOS: opaque, mark fills ~62% of the canvas (Apple masks the corners itself). - render(svg(1024, mark(1024, 0.62), true), 1024, path.join(OUT, "icon.png"), false); - // Android adaptive foreground: content must sit inside the central 66% safe zone. - render(svg(1024, mark(1024, 0.46, { glow: false })), 1024, path.join(OUT, "android-icon-foreground.png"), true); - // Android monochrome: single-colour silhouette, same safe zone. - render(svg(1024, mark(1024, 0.46, { ring: "#FFFFFF", core: "#FFFFFF", glow: false })), 1024, path.join(OUT, "android-icon-monochrome.png"), true); + // iOS: opaque, ring spans 64% of the canvas (Apple masks the corners itself). + render(svg(1024, background(1024) + mark(1024, 0.64)), 1024, path.join(OUT, "icon.png"), false); + // Android adaptive: ember-glow background + ring inside the 66dp safe circle. + render(svg(1024, background(1024)), 1024, path.join(OUT, "android-icon-background.png"), false); + render(svg(1024, mark(1024, 0.5)), 1024, path.join(OUT, "android-icon-foreground.png"), true); + // Android monochrome: white silhouette, a little smaller than the colour mark (themed icons read lighter). + render(svg(1024, mark(1024, 0.42, { mono: true })), 1024, path.join(OUT, "android-icon-monochrome.png"), true); // Splash: mark only, on transparent; app.json sets the background colour. - render(svg(512, mark(512, 0.8, { glow: false })), 512, path.join(OUT, "splash-icon.png"), true); + render(svg(512, mark(512, 0.86, { glow: false })), 512, path.join(OUT, "splash-icon.png"), true); fs.rmSync(TMP, { recursive: true, force: true }); - console.log("wrote icon.png, android-icon-foreground.png, android-icon-monochrome.png, splash-icon.png"); + console.log("wrote icon.png, android-icon-background.png, android-icon-foreground.png, android-icon-monochrome.png, splash-icon.png"); } main();