Merge pull request #1477 from MODSetter/dev

feat: build fixes
This commit is contained in:
Rohan Verma 2026-06-09 23:59:26 -07:00 committed by GitHub
commit 793fa401da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 1 deletions

View file

@ -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")

View file

@ -11,7 +11,7 @@
"pack:dir:linux": "pnpm build && electron-builder --dir --linux --config electron-builder.yml -c.npmRebuild=false",
"dist": "pnpm build && electron-builder --config electron-builder.yml",
"dist:mac": "pnpm build && electron-builder --mac --config electron-builder.yml",
"dist:win": "pnpm build && electron-builder --win --config electron-builder.yml",
"dist:win": "pnpm build && electron-builder --win --config electron-builder.yml -c.npmRebuild=false",
"dist:linux": "pnpm build && electron-builder --linux --config electron-builder.yml -c.npmRebuild=false",
"typecheck": "tsc --noEmit",
"postinstall": "node scripts/postinstall-rebuild.mjs"

View file

@ -26,6 +26,12 @@ RUN pnpm i --frozen-lockfile
FROM base AS builder
WORKDIR /app
# git is required by the fumadocs-mdx lastModified plugin during `next build`.
# The .git directory is dockerignored, so git commands exit non-zero and the
# plugin falls back gracefully — but the binary itself must exist to avoid
# "spawn git ENOENT" failures.
RUN apk add --no-cache git
# Enable pnpm
RUN corepack enable pnpm