diff --git a/content/blog/atomic-notes-v1-18-2.md b/content/blog/atomic-notes-v1-18-2.md index 1f5f13f..18a06b6 100644 --- a/content/blog/atomic-notes-v1-18-2.md +++ b/content/blog/atomic-notes-v1-18-2.md @@ -49,7 +49,7 @@ This is a demo build, so some parts are intentionally not live. Sideload the signed APK from GitHub Releases. On most phones, use the arm64 build. -Download the latest build from [GitHub Releases](https://github.com/DevBehindYou/Atomic-Notes-App/releases). For how the economy works, read the [Atomic Energy guide](/blog). +Download the latest build from [GitHub Releases](https://github.com/DevBehindYou/Atomic-Notes-App-V0.2/releases). For how the economy works, read the [Atomic Energy guide](/blog). ## What is next diff --git a/src/app/page.tsx b/src/app/page.tsx index 832d683..6673bc2 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -236,14 +236,14 @@ export default async function Home() {

Download the latest signed APK from GitHub Releases. On most - phones, use app-arm64-v8a-release.apk. + phones, use the file ending in arm64-v8a.apk.

Download the APK { const home = await (await request('/')).text(); - assert.match(home, /href="https:\/\/github\.com\/DevBehindYou\/Atomic-Notes-App\/releases\/latest"/); + // Unless NEXT_PUBLIC_APK_URL was set when the site was built, the button uses the default. + const apkLink = /href="(https:\/\/github\.com\/DevBehindYou\/[^"]+\/releases\/latest)"/.exec(home); + assert.ok(apkLink, 'a GitHub releases/latest download link'); assert.equal(home.includes('ci-latest'), false); + assert.equal(home.includes('Project-Atomic-Notes'), false, 'the old repository name is gone'); + assert.match(home, /href="https:\/\/github\.com\/DevBehindYou\/Atomic-Notes-App-V0\.2"/); }); });