aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'build.js')
-rw-r--r--build.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/build.js b/build.js
index cdc54f5..ca0f651 100644
--- a/build.js
+++ b/build.js
@@ -469,8 +469,13 @@ if (import.meta.main) {
if (await Bun.file('static/.well-known/assetlinks.json').exists()) {
await Bun.write('dist/.well-known/assetlinks.json', Bun.file('static/.well-known/assetlinks.json'));
}
- if (await Bun.file('static/coinos.apk').exists()) {
- await Bun.write('dist/coinos.apk', Bun.file('static/coinos.apk'));
+ // The Android builds. coinos.apk is the TWA (Chrome renders the site);
+ // coinos-unifiedpush.apk runs the wallet in its own WebView so a phone
+ // without Google Play Services can be woken — see android/.
+ for (const apk of ['coinos.apk', 'coinos-unifiedpush.apk']) {
+ if (await Bun.file('static/' + apk).exists()) {
+ await Bun.write('dist/' + apk, Bun.file('static/' + apk));
+ }
}
// default avatars, self-hosted since coinos.io's copies are half-broken.
// punks-sm carries a 128px copy of each: the art is 240px because that's