Hi there!
Describe
When I run a build script for Mac got an error
> yes|cp -R -H ../sdk/mac/Plugins ./node_modules/electron/dist/Electron.app/Contents/&& yes|cp -R -H ../sdk/mac/Resources ./node_modules/electron/dist/Electron.app/Contents/ && yes|cp -R -H ../sdk/mac/ZoomSDK/ ./node_modules/electron/dist/Electron.app/Contents/Frameworks
cp: ./node_modules/electron/dist/Electron.app/Contents: No such file or directory
cp: ../sdk/mac/Plugins: unable to copy extended attributes to ./node_modules/electron/dist/Electron.app/Contents: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver: No such file or directory
cp: ../sdk/mac/Plugins/ZoomAudioDevice.driver: unable to copy extended attributes to ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents: No such file or directory
cp: ../sdk/mac/Plugins/ZoomAudioDevice.driver/Contents: unable to copy extended attributes to ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/_CodeSignature: No such file or directory
cp: ../sdk/mac/Plugins/ZoomAudioDevice.driver/Contents/_CodeSignature: unable to copy extended attributes to ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/_CodeSignature: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/_CodeSignature/CodeResources: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/MacOS: No such file or directory
cp: ../sdk/mac/Plugins/ZoomAudioDevice.driver/Contents/MacOS: unable to copy extended attributes to ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/MacOS: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/MacOS/ZoomAudioDevice: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/Resources: No such file or directory
cp: ../sdk/mac/Plugins/ZoomAudioDevice.driver/Contents/Resources: unable to copy extended attributes to ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/Resources: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/Resources/ZoomAudioIcon.icns: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/Resources/Localizable.strings: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/ZoomAudioDevice.driver/Contents/Info.plist: No such file or directory
cp: ./node_modules/electron/dist/Electron.app/Contents/readme_for_audiodriver.txt: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test1@1.0.0 postinstall-mac: `yes|cp -R -H ../sdk/mac/Plugins ./node_modules/electron/dist/Electron.app/Contents/&& yes|cp -R -H ../sdk/mac/Resources ./node_modules/electron/dist/Electron.app/Contents/ && yes|cp -R -H ../sdk/mac/ZoomSDK/ ./node_modules/electron/dist/Electron.app/Contents/Frameworks`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test1@1.0.0 postinstall-mac script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
After 5 min investigation, found that there is a single file in the demo/node_modules/clone directory. That leads to a positive condition on line 3 and it tries to run an npm script without installed packages.
So I removed the folder and create a PR https://github.com/zoom/zoom-sdk-electron/pull/10