Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: electron version constant #1965

Merged
merged 1 commit into from
Feb 1, 2022
Merged

fix: electron version constant #1965

merged 1 commit into from
Feb 1, 2022

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Jan 28, 2022

Electron is a dev dependency. However, devDependencies is not available after packaging the app and it will throw an error right after starting IPFS Desktop.

The most fail proof way to obtain it is via process.versions.electron: https://www.electronjs.org/docs/latest/api/process#processversionselectron-readonly.

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias hacdias requested a review from lidel January 28, 2022 13:34
@hacdias hacdias added this to In Review in Maintenance Priorities - JS via automation Jan 28, 2022
@hacdias hacdias changed the title fix: electron version fix: electron version constant Jan 28, 2022
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm:

User-Agent: ipfs-desktop/0.18.1 (Electron 13.6.7)

@lidel lidel merged commit 65599b9 into main Feb 1, 2022
Maintenance Priorities - JS automation moved this from In Review to Done Feb 1, 2022
@lidel lidel deleted the fix/electron-version branch February 1, 2022 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants