fix: run webpack after cljs in electron release flow by waneon · Pull Request #12405 · logseq/logseq
Problem
After a clean clone of the repository, running yarn release-electron fails because ./target/db-worker.js and ./target/inference-worker.js cannot be found.
The root cause is that webpack is invoked before cljs:release-electron generates the required target/*.js artifacts, while the webpack entry configuration expects those files to already exist.
As a result, the build process fails in a fresh environment.
Steps to Reproduce
- Clone the repository
yarn installyarn release-electron
Changes
This PR modifies the release-electron script to:
- Execute cljs:release-electron first
- Run webpack only after the required target/*.js artifacts have been generated