I’m working on a VSCode extension that I’m spawning external electron apps for some features
Everything works well on the dev environment, so there is no any problem.
However, when I package this extension into a VSIX package for shipment, the problem begins on macOS
I realized that, vsce (packaging tool for VSCode) corrupts the Electron when packaging.
There are also some issues for this, for example: https://github.com/Microsoft/vscode-vsce/issues/168
Therefore I can’t run the Electron app with node_modules/electron/dist/Electron.app/Contents/MacOS/Electron
how can I package my electron apps so that they don’t get corrupted when packaging the extension with vsce? (this problem is the priority)
How can I package these apps (or extension) for cross-platform? Since the npm install gets modules platform dependent, it gets Electron.app if you package the extension on macOS, or gets electron.exe if you package on Windows. The package created on macOS, doesn’t work on Windows (because it doesn’t have electron.exe)
The first question is the priority, for the second, it would be good if there is a way.
Thanks in advance