Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #326 from complexdatacollective/fix/bonjour-installer
Browse files Browse the repository at this point in the history
add bonjour installer and MSI script
  • Loading branch information
jthrilly committed Feb 16, 2021
2 parents 111a57d + ae59b07 commit a726242
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Binary file added build-resources/externals/Bonjour64.msi
Binary file not shown.
13 changes: 13 additions & 0 deletions build-resources/scripts/bonjour.nsh
@@ -0,0 +1,13 @@
!macro customInstall
IfFileExists $PROGRAMFILES\Bonjour\mDNSResponder.exe bonjour noBonjour
noBonjour:
MessageBox MB_YESNO "This app requires Bonjour to be installed to enable automatic server discovery. Would you like to install it now?" IDYES true
goto end
true:
ExecWait 'msiexec /i "resources\build-resources\externals\Bonjour64.msi" /quiet /passive'
goto end
bonjour:
goto end
end:
!macroend

6 changes: 6 additions & 0 deletions package.json
Expand Up @@ -153,6 +153,9 @@
],
"build": {
"extends": null,
"extraResources": [
"./build-resources/externals/**"
],
"appId": "Network-Canvas-Server-6",
"afterSign": "./build-resources/scripts/afterSignHook.js",
"directories": {
Expand All @@ -165,6 +168,9 @@
"hardenedRuntime": true,
"entitlements": "./build-resources/entitlements.mac.inherit.plist"
},
"nsis": {
"include": "build-resources/scripts/bonjour.nsh"
},
"win": {
"target": "nsis",
"certificateSha1": "512E5573B1961B0ADCAFB21288935F8A3E6E656F"
Expand Down

0 comments on commit a726242

Please sign in to comment.