I want to create a custom file type for my Electron app. I want custom file icons and for the app to open when you double-click on the file. How do I do this?
Use the fileAssociations option in electron-builder. For example, in your package.json:
"build": {
// ...
"fileAssociations": [{
"ext": "xyz",
"name": "XYZ File",
"role": "Editor"
}]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With