Configure electron-builder to run powershell script
问题 I have an installation file created by electron-builder and faced issue that can't find a way how to run powershell script after installation. The idea is to make some changes in windows registry and set permission for application folder. As far as I understand it should be configured in build section in package.json . In api I found that it is exist afterPack method, but I can't figure it out how to execute powershell file through it. Thank you. 回答1: First, create an afterPack.js file,