答案 0 :(得分:1)
答案 1 :(得分:0)
您可以尝试将其添加到electron-builder-config.json
:
"fileAssociations": [
{
"ext": ["txt", "md", "yml"],
"name": "Plain Text",
"role": "Editor"
}
],
来自https://github.com/rchrd2/example-electron-file-association
另请参阅: https://www.electron.build/configuration/configuration#PlatformSpecificBuildOptions-fileAssociations