alex8088 / electron-vite

Next generation Electron build tooling based on Vite 新一代 Electron 开发构建工具,支持源代码保护
https://electron-vite.org
MIT License
3.57k stars 153 forks source link

Docs issue: Multi-Platform Build #662

Open zerbzman opened 2 weeks ago

zerbzman commented 2 weeks ago

Describe the bug

At https://electron-vite.org/guide/source-code-protection#multi-platform-build, it says to add process.env.ELECTRON_EXEC_PATH = '/path/to/electron-x64/electron.app' to point to the Electron app but it should actually be './path/to/electron-x64/dist/Electron.app/Contents/MacOS/Electron'. It needs to point to the binary and not just the app.

Electron-Vite Version

2.3.0

Electron Version

30

Vite Version

5

Validations