Skip to content

Recommend generating third-party notices in the build - #9

Merged
RyanEwen merged 1 commit into
mainfrom
docs/build-time-notices
Dec 1, 2026
Merged

RyanEwen merged 1 commit into
mainfrom
docs/build-time-notices

Conversation

@RyanEwen

@RyanEwen RyanEwen commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Owner decision: apps stop committing third-party notices and generate them during the build, because a committed file fails every Dependabot pull request that touches a production dependency (the bot cannot regenerate it).

The README already allowed build-time generation as an option; this makes it the recommended path and records what the Persistent and Store Sign migrations ran into:

  • run it before the bundler in both the build and the dev server, so the About link works in development;
  • it reads devkit.config.mjs from the current directory, so a workspace script calls it from the repo root (npm --prefix ../.. run notices), and --only scopes it to one deliverable;
  • electron-builder only logs a missing extraResources file and exits 0, so a packaged app should be checked for the file;
  • --check stays for repos that still commit their files.

Documentation only: no code changes, and no app depends on a release for this.

AI disclosure: this comment and the related code were written with the assistance of AI.

A committed notices file fails every Dependabot pull request that changes a production dependency, so the README now leads with build-time generation: run it before the bundler in both build and dev, from the repo root, scoped with --only, and check that a packaged Electron app contains it because electron-builder only logs a missing extra resource. --check stays for repos that still commit their files. Documentation only; no release is needed.
@RyanEwen
RyanEwen merged commit 481796f into main Dec 1, 2026
1 check passed
@RyanEwen
RyanEwen deleted the docs/build-time-notices branch December 1, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant