How do I set environment variables that will be accessible when the electron app is built and ran from the installer, not the cli? Using electron-builder V23.6 (latest)
Here's my build script in package.json:
"build:electron": "set MYVAR=true && electron-builder build --config electron-builder.config.js"
When I try to read process.env.MYVAR
, I get undefined.
The env variable is accessible in the builder config.js, so maybe there's an option I can relay from there?