Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

chore(deps): run @capacitor/assets with npx instead of installing it

lodepav2b67018cfc19
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bf260486..d87f6189b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -153,9 +153,9 @@ test:frontend:
- frontend/.npm
script:
- cd frontend
- # --ignore-scripts: nothing here needs a postinstall, and the one package that has a
- # heavy one (@capacitor/assets → sharp, a 10 MB libvips download from GitHub) is only
- # used to draw app icons. That download timing out is what turned a release red.
+ # --ignore-scripts: nothing here needs a postinstall. (@capacitor/assets, whose sharp
+ # downloaded libvips from GitHub and once turned a release red, is no longer installed:
+ # docs/MOBILE.md runs it with npx when icons are redrawn.)
- npm ci --cache .npm --prefer-offline --ignore-scripts
# JUnit → the MR widget lists exactly which tests failed; cobertura → coverage on the
# diff; text-summary → the number the coverage badge shows.
diff --git a/docs/MOBILE.md b/docs/MOBILE.md
index ca20914d8..d0383225b 100644
--- a/docs/MOBILE.md
+++ b/docs/MOBILE.md
@@ -451,9 +451,12 @@ app background). Generate all platform assets from it on a machine with the tool
```sh
cd frontend
-npx @capacitor/assets generate --iconBackgroundColor '#0c0e12' --splashBackgroundColor '#0c0e12'
+npx @capacitor/[email protected] generate --iconBackgroundColor '#0c0e12' --splashBackgroundColor '#0c0e12'
```
+The generator is not a dependency of the app (it pulls in an old Capacitor CLI and sharp),
+so `npx` fetches it for that one run.
+
(If the generator won't take the SVG directly, export it to `resources/icon.png` at
1024×1024 first; any image tool can do it.)
diff --git a/web/Dockerfile b/web/Dockerfile
index 886be24d2..9eec222fc 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -14,9 +14,9 @@ FROM --platform=$BUILDPLATFORM node:22-alpine AS build
# is exactly what made the v1.2.15 web image fail to build.
WORKDIR /app/frontend
COPY frontend/package.json frontend/package-lock.json* ./
-# --ignore-scripts: the web image only needs `vite build`; the one heavy postinstall in this tree
-# (@capacitor/assets -> sharp, a libvips download from GitHub) is for drawing app icons and has
-# timed out on the shared runners — a lockfile-ignoring `npm install` fallback is no answer to that.
+# --ignore-scripts: the web image only needs `vite build`, and no postinstall should be able to
+# break it (@capacitor/assets' sharp download once timed out on the shared runners; the icon
+# tool is now run with npx, docs/MOBILE.md, and not installed here).
RUN npm ci --ignore-scripts
COPY api/coach/core/ /app/api/coach/core/
COPY frontend/ ./