fix error and new docs

This commit is contained in:
Ivan Fontosh
2026-05-18 10:06:47 +08:00
parent 0ae3c39333
commit 10de99bb06
7 changed files with 353 additions and 10 deletions
+2 -1
View File
@@ -3,11 +3,12 @@
## Сборка на Mac
```bash
npm ci
FFMPEG_BINARIES_URL=https://cdn.npmmirror.com/binaries/ffmpeg-static npm ci
npm run pack:mac
```
`pack:mac` сам вызывает `build` и `scripts/release-mac-prep.mjs` — подтягивает **оба** набора нативных бинарников sharp (x64 и arm64). Без этого x64-сборка с Apple Silicon падает при старте с ошибкой `Could not load the "sharp" module using the darwin-x64 runtime`.
Переменная `FFMPEG_BINARIES_URL` нужна только чтобы `ffmpeg-static` не падал из-за временных 5xx на GitHub при `npm ci`.
В `release/` (имена **без версии**):
Binary file not shown.
Binary file not shown.