mirror of
https://github.com/siddharthvaddem/openscreen.git
synced 2026-08-29 03:08:30 +08:00
fix(build): use sharp prebuilt instead of compiling from source (fixes macOS CI)
This commit is contained in:
@@ -69,6 +69,15 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
# ─── Ensure sharp prebuilt binary (+ bundled libvips) ─────
|
||||
# `npm ci` can leave sharp without its prebuilt binary/vendored libvips,
|
||||
# which makes electron-builder's native rebuild fail ("vips-cpp.42 not
|
||||
# found"). Re-fetch the prebuilt (never compile from source).
|
||||
- name: Ensure sharp prebuilt
|
||||
run: npm rebuild sharp
|
||||
env:
|
||||
npm_config_build_from_source: "false"
|
||||
|
||||
# ─── Import Code Signing Certificate ──────────────────────
|
||||
# This is the KEY step that makes CI signing work.
|
||||
# We create a temporary keychain, import the .p12 cert into it,
|
||||
|
||||
@@ -9,7 +9,10 @@
|
||||
],
|
||||
"productName": "Openscreen",
|
||||
"npmRebuild": true,
|
||||
"buildDependenciesFromSource": true,
|
||||
// sharp ships ABI-stable (napi) prebuilt binaries with bundled libvips. Building it from source
|
||||
// needs a system libvips we don't provide and breaks on CI/local ("vips-cpp.42 not found"), so we
|
||||
// let electron-builder use the prebuilt instead of recompiling.
|
||||
"buildDependenciesFromSource": false,
|
||||
"compression": "normal",
|
||||
"directories": {
|
||||
"output": "release/${version}"
|
||||
|
||||
Reference in New Issue
Block a user