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
2 changes: 1 addition & 1 deletion content/blog/atomic-notes-v1-18-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ export default async function Home() {
</h2>
<p className="lead" style={{ margin: "12px 0 22px" }}>
Download the latest signed APK from GitHub Releases. On most
phones, use <span className="mono">app-arm64-v8a-release.apk</span>.
phones, use the file ending in <span className="mono">arm64-v8a.apk</span>.
</p>
<div className="hero-actions">
<a href={APK} className="btn-signal">
Download the APK
</a>
<a
href="https://github.com/DevBehindYou/Project-Atomic-Notes"
href="https://github.com/DevBehindYou/Atomic-Notes-App-V0.2"
className="btn-ghost"
target="_blank"
rel="noreferrer"
Expand Down
3 changes: 2 additions & 1 deletion src/lib/site.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Public, non-secret site settings. Only NEXT_PUBLIC_* variables belong here:
// this module is also bundled into client components.
const DEFAULT_SITE_URL = "https://atomic-notes-community.vercel.app";
const DEFAULT_APK_URL = "https://github.com/DevBehindYou/Atomic-Notes-App/releases/latest";
// The App is built from Atomic-Notes-App-V0.2 (the older Atomic-Notes-App repository has no releases).
const DEFAULT_APK_URL = "https://github.com/DevBehindYou/Atomic-Notes-App-V0.2/releases/latest";

function originOf(value: string | undefined, fallback: string): string {
try {
Expand Down
6 changes: 5 additions & 1 deletion tests/runtime.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,12 @@ test('production routes preserve authentication and public content', { timeout:

await t.test('download links point at the App repository, not a tag that may not exist', async () => {
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"/);
});
});

Expand Down