Open skident opened 4 months ago
You can use extraMetadata
to inject properties to package.json
Example:
extraMetadata: {
version: process.env.APP_VERSION
}
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
I ended up by writing a JS script which injects the actual version in my package.json file when it's needed and then restores it back to kind of 1.0.0
version.
Not very convenient but it solves my problem
I want to manage the application version from the outside using an environment variable. Everything works fine except I cannot build the dist of my app after I remove the
version
from thepackage.json
file. The error is next:electron builder Please specify 'version' in the package.json
Is there a way to pass an app version from outside because this error looks very odd.