-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WINDOWS] Electron package DNSServiceRef is not initialized / supportsInterfaceIndexLocalOnly #159
Comments
Is the Bonjour SDK for windows installed on that other machine? |
Yes it is... but it should not be necessary... as the app include it's own lib compiled... |
We also tried to install a full copy of all the lib and tool necessary to compile it but it does not change anything. |
Good. It is required.
That is probably not true. The Bonjour SDK contains three things:
Even if the electron-packager manages to detect the DLL dependency I don't see how it could detect the dependency on the system service. So, definitely install the SDK. Also, make sure the Bonjour service is actually running. If in doubt reboot after installing the SDK. Bottom line is: I think it is a dependency issue. Copying the binary should work fine and you are probably really close. |
Hmmm how would One distribute an app with zeroconf capabilities without asking to install Apple dependencies ? The bonjour mdns services ? What are the services provided by the Bonjour service exe? Envoyé rapidement et avec attention depuis un terminal mobile.
|
I don't know. Technically, you could ship a Setup.exe that contains both, the SDK and your zip file. First, install the SDK, unzip, reboot... But: I'm not sure if it is legal to redistribute the Bonjour SDK.
Hmm...
The Bonjour service exe provides the bonjour service. No, seriously: It handles the actual network stuff. Creating a |
Random thoughts: Maybe it is a permission problem? Check the system logs? Local firewalls? |
Also, some other Apple packages used to install the bonjour service (Safari, iTunes). Not sure if that is still the case. Maybe there is an older, incompatible or just different version installed? Just guessing... |
That's what we did. During the setup, start the BonjourSDK installer. |
We're shipping the bonjour sdk along with our app, too. Sporadically getting the above error anyway (after manually killing/restarting the bonjour service it worked again) so I switched to using dns-sd by hand i. e. calling dns-sd on the command line. |
@black-snow, @y-lohse did you send to apple both Windows Bundling Agreement and Bonjour Logo License Agreement? Is there a way to make mdns work on Linux without asking the final user to install dependencies? I currently use electron to build an .AppImage |
@fttx I'm not sure which applications we sent to Apple but I think we filled out every paper that was present on Apple's page. Took some weeks until we got the go. I think it depends on the way you plan to distribute you linux app. If you ship via dpkg or alike you should be able to add avahi to the dependencies. Sadly, I'm not an expert in that area. |
After reading the whole license agreement and contacting them i learned that if your product isn't an hardware product, and it isn't distributed by hardware medias, you don't need to show the logo anywhere thus only the "Windows bundling agreement" should be enough. Regarding the DNSServiceRef error i also had a report from an user that solved the problem by restarting the service, and he had the bonjour library already installed from another application. |
The following ticket says that this issue might be related to mdns not electron : electron/electron#4606. So here it is.
After successfully installed mdns module for usage in electron and a perfectly running apps when we package it using electron-packager (https://github.com/maxogden/electron-packager) we are unfortunately not able to zip and ship it for other Windows users.
We tested it on Windows 10 and Windows 7 with exactly the same environnement and same computers as the app is built on.
Dropping the zip anywhere on the computer we build the app on works perfectly (in any folders). Unfortunately giving the zip, unzipping on an other computer running windows 10 gives the following error :
The text was updated successfully, but these errors were encountered: