mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-04 22:02:16 +02:00
commit
793fa401da
3 changed files with 15 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' }}" \
|
--publish "${{ inputs.publish || 'always' }}" \
|
||||||
-c.extraMetadata.version="${{ steps.version.outputs.VERSION }}")
|
-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
|
if [ "${{ steps.sign.outputs.enabled }}" = "true" ]; then
|
||||||
CMD+=(-c.win.azureSignOptions.publisherName="$WINDOWS_PUBLISHER_NAME")
|
CMD+=(-c.win.azureSignOptions.publisherName="$WINDOWS_PUBLISHER_NAME")
|
||||||
CMD+=(-c.win.azureSignOptions.endpoint="$AZURE_CODESIGN_ENDPOINT")
|
CMD+=(-c.win.azureSignOptions.endpoint="$AZURE_CODESIGN_ENDPOINT")
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
"pack:dir:linux": "pnpm build && electron-builder --dir --linux --config electron-builder.yml -c.npmRebuild=false",
|
"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": "pnpm build && electron-builder --config electron-builder.yml",
|
||||||
"dist:mac": "pnpm build && electron-builder --mac --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",
|
"dist:linux": "pnpm build && electron-builder --linux --config electron-builder.yml -c.npmRebuild=false",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"postinstall": "node scripts/postinstall-rebuild.mjs"
|
"postinstall": "node scripts/postinstall-rebuild.mjs"
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,12 @@ RUN pnpm i --frozen-lockfile
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /app
|
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
|
# Enable pnpm
|
||||||
RUN corepack enable pnpm
|
RUN corepack enable pnpm
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue