Commit e85d769
committed
feat: add libc tagging support for Linux packages
Implement --tag-libc support for prebuildify to distinguish between
glibc and musl variants on Linux, following official N-API best
practices for precompiled binary distribution.
Changes:
- Add --tag-libc flag to prebuildify wrapper (ci-workflow.ts)
- Update platform package naming to include libc suffix (platform-package.ts)
- Update CI workflow to pass --libc glibc for Linux builds (ci.yml)
- Update runtime binding loader to resolve glibc-tagged packages (binding.ts)
- Update package.json optionalDependencies with new package name
- Update create-platform-packages script for glibc platform config
- Add comprehensive build system documentation (build-system.md)
- Add detailed implementation guide (libc-tagging-implementation.md)
Package name change:
- Before: @pproenca/node-webcodecs-linux-x64
- After: @pproenca/node-webcodecs-linux-x64-glibc
This change improves platform targeting and aligns with official
prebuildify guidance for libc tagging. Infrastructure is now ready
for future musl (Alpine Linux) support.
Ref: https://nodejs.org/api/n-api.html#uploading-precompiled-binaries1 parent 7d3e7ce commit e85d769
8 files changed
Lines changed: 965 additions & 25 deletions
File tree
- .github/workflows
- docs
- lib
- scripts
- ci
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | | - | |
227 | | - | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
0 commit comments