You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use nw-builder to build an application of mine that uses the WebRTC getUserMedia API to capture images.
The capture part of the program has stopped working in macOS Mojave and above once built with nw-builder. The issue is that the macOS's "application x" would like to use your camera prompt is not displayed when the navigator.deviceMedia.getUserMedia() function is called.
I have determined that the issue occurs because packages built with nw-builder do not include .lproj directories inside of Contents > Resources.
The fix is to simply add a method to copy these .lproj directories from the downloaded binary to the packaged application. The .strings files inside of the .lproj directories contain lots of references to Chromium and nwjs so it would be good if these could be renamed to the selected appName.
I use nw-builder to build an application of mine that uses the WebRTC
getUserMedia
API to capture images.The capture part of the program has stopped working in macOS Mojave and above once built with nw-builder. The issue is that the macOS's
"application x" would like to use your camera
prompt is not displayed when thenavigator.deviceMedia.getUserMedia()
function is called.I have determined that the issue occurs because packages built with nw-builder do not include
.lproj
directories inside ofContents > Resources
.The fix is to simply add a method to copy these
.lproj
directories from the downloaded binary to the packaged application. The.strings
files inside of the.lproj
directories contain lots of references to Chromium andnwjs
so it would be good if these could be renamed to the selected appName.Here is a comparison between manually building the same app (as per http://docs.nwjs.io/en/latest/For%20Users/Package%20and%20Distribute/#package-your-app) and using nw-builder:
Manual build steps
app.icns
anddocument.icns
filesContents > Resources
.Contents > Resources
contains the following files:Building the same app with nw-builder
Contents > Resources
of the generated package contains the following:The text was updated successfully, but these errors were encountered: