-
Notifications
You must be signed in to change notification settings - Fork 1
Add License In build #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,8 @@ On macOS / Linux builds, make sure the following assets exist (replace with your | |
|
|
||
| Electron Builder uses the configuration defined in `package.json` (`build` field) for app ID, product name, and targets. | ||
|
|
||
| Dependency licenses are generated via `npm run build:licenses` (automatically executed inside `npm run build`) into `build/licenses/THIRD_PARTY_LICENSES.txt`, and Electron Builder bundles that file together with the root `LICENSE` in the installers. Re-run the script after dependency changes to refresh the list. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This documentation states that The Please update "scripts": {
...
"build": "npm run build:licenses && npm run build:vite && npm run build:electron",
"build:licenses": "node scripts/generate-licenses.js",
...
} |
||
|
|
||
| ## Project Structure (Overview) | ||
| - `src/main/` – Electron main process. Exposes IPC handlers for SwitchBot API and manages `electron-store` for settings and credentials. | ||
| - `src/preload/` – Preload scripts that bridge the main process and renderer (e.g., `electronStore`, `switchBotBridge`). | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This documentation states that
npm run build:licensesis automatically executed withinnpm run build, but thescriptsinpackage.jsonhave not been updated to reflect this.The
build:licensesscript needs to be defined and called from thebuildscript. Without this change,THIRD_PARTY_LICENSES.txtwill not be generated, causingelectron-builderto fail during thenpm run packagecommand.Please update
package.jsonto integrate the license generation. For example: