Skip to content

fix: build with 16KB page size support#7

Merged
gmaclennan merged 3 commits intomainfrom
fix/16kb-page-size
Nov 3, 2025
Merged

fix: build with 16KB page size support#7
gmaclennan merged 3 commits intomainfrom
fix/16kb-page-size

Conversation

@gmaclennan
Copy link
Member

@gmaclennan gmaclennan commented Nov 3, 2025

We haven't yet been using the bare-make builds of better-sqlite3 in comapeo-mobile, which is why I'm keeping the releases with the -bare-make suffix, to avoid messing with current builds. This will need a PR to comapeo-mobile to change downloadPrebuilds to add -bare-make to the version parameter, and the removal of test_extension.node will not be needed any more.

As well as adding the 16kb page size support, I've added a CI step to rename the .node file, to match what better-sqlite3 expects when it tries to load it.

I've tested this by running this workflow to build without releasing, then manually downloaded the build artifacts, added them to nodejs_assets, then ran the debug version of the app and tested creating an observation. I then opened the APK in the Android Studio APK analyzer and checked that it no longer shows an alignment warning for better_sqlite3.node.

Once we merge we should run the prebuild workflow for release 11.10.0, keeping the -bare-make suffix. Then update comapeo-mobile to download this version.

@gmaclennan gmaclennan self-assigned this Nov 3, 2025
We haven't actually tested the bare-make build of this in the app yet.
@gmaclennan gmaclennan requested a review from achou11 November 3, 2025 21:30
@gmaclennan gmaclennan merged commit 04537c9 into main Nov 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants