Skip to content

Commit

Permalink
electron: Add (automate) rebuild into yarn package
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
  • Loading branch information
marco-miller committed Jun 13, 2023
1 parent e8d660a commit a37bbf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ TRACE_SERVER_URL=https://my.trace.server:port/tsp/api yarn start:browser
It is possible to package the repository's example application with `electron-builder`. After running `yarn` in the repo root, run:

```bash
yarn rebuild:electron
cd examples/electron
yarn package
```
Expand Down
5 changes: 3 additions & 2 deletions examples/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
"prepare": "theia build --mode development",
"start": "TRACE_SERVER_PATH=../../trace-compass-server/tracecompass-server theia start --plugins=local-dir:../plugins",
"watch": "theia build --watch --mode development",
"package": "electron-builder",
"package:preview": "electron-builder --dir"
"package": "yarn package:rebuild && electron-builder",
"package:preview": "yarn package:rebuild && electron-builder --dir",
"package:rebuild": "theia rebuild:electron --cacheRoot ../.."
},
"engines": {
"yarn": "1.0.x || >=1.2.1",
Expand Down

0 comments on commit a37bbf1

Please sign in to comment.