mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-10 20:35:17 +02:00
fix(build): disable npm rebuild for non-macOS platforms in release workflow
This commit is contained in:
parent
fb0e466492
commit
52f035f344
2 changed files with 9 additions and 1 deletions
8
.github/workflows/desktop-release.yml
vendored
8
.github/workflows/desktop-release.yml
vendored
|
|
@ -121,6 +121,14 @@ jobs:
|
|||
--publish "${{ inputs.publish || 'always' }}" \
|
||||
-c.extraMetadata.version="${{ steps.version.outputs.VERSION }}")
|
||||
|
||||
# node-mac-permissions is the only native dependency and is darwin-only.
|
||||
# electron-builder's internal rebuild would try to node-gyp compile it on
|
||||
# Windows (no Visual Studio) and Linux, so skip the rebuild there. On macOS
|
||||
# the rebuild must stay enabled for per-arch (x64/arm64) builds.
|
||||
if [ "${{ matrix.platform }}" != "--mac" ]; then
|
||||
CMD+=(-c.npmRebuild=false)
|
||||
fi
|
||||
|
||||
if [ "${{ steps.sign.outputs.enabled }}" = "true" ]; then
|
||||
CMD+=(-c.win.azureSignOptions.publisherName="$WINDOWS_PUBLISHER_NAME")
|
||||
CMD+=(-c.win.azureSignOptions.endpoint="$AZURE_CODESIGN_ENDPOINT")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue