Creates Electron, React, and Python production builds.
Compiles main.ts + preload.ts to dist-electron/. package.json "main" points at dist-electron/main.js, so this output must exist before electron-packager bundles the asar.
Creates production build of Python back end. Uses app.spec (committed) so hiddenimports and bundled data files survive PyInstaller's static-analysis blind spots — see the comment block at the top of app.spec.
Creates production build of React front end.
DISABLE_ESLINT_PLUGIN=true: CRA 5 ships eslint-config-react-app and
loads it inside the webpack ESLint plugin. Combined with this project's
.eslintrc.cjs (which already lists plugins: ['react']), the build fails
with "Plugin 'react' was conflicted between …". Disabling CRA's plugin
keeps the build clean; standalone yarn lint still runs the airbnb
config we want.
Builds React & Python builds of project so Electron can be used.