-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error in dmg -> "internetEnabled": true -> verb not recognized hdiutil internet-enable -quiet verb not recognized #4405
Comments
How do you pass the option internetEnabled: false? No such command found in documentation https://www.electron.build/cli |
As it shown here: |
This started to affect us as well. We upgraded to MacOS Catalina on our builder and it appears that they removed the internet-enable verb from hdiutil. The build log:
The relevant part of configuration: {
"dmg": {
"background": "electron-resources/dmg_background.tiff",
"iconTextSize": 14,
"iconSize": 100,
"contents": [
{
"x": 130,
"y": 200
},
{
"x": 410,
"y": 200,
"type": "link",
"path": "/Applications"
}
],
"internetEnabled": true
},
"mac": {
"category": "public.app-category.productivity",
"icon": "electron-resources/icons/mac/icon.icns",
"artifactName": "${name}-${version}.${ext}",
"hardenedRuntime": true,
"entitlements": "electron-resources/entitlements.mac.plist",
"extendInfo": {
"NSAppTransportSecurity": {
"NSAllowsArbitraryLoads": true
}
}
}
} |
I too have the exact same problem when building for Mac OS (Catalina). |
I actually managed to find a quick and ugly fix: removing lines 162-164 from node_modules/dmg-builder/out/dmg.js if (this.options.internetEnabled {
await (0, _builderUtil().exec)("hdiutil", addLogLevel(["internet-enable"]).concat(artifactPath));
} makes the error disappear. |
thanks @migliorinie |
@sergeyd63 No, apparently that function has been eliminated from hdiutil on the update to Catalina. EDIT: I re-read my package.json file, and I noticed that I had set the internetEnabled flag to true. It's likely that just setting it to false when building on Catalina would be enough to remove the bug, although of course they still won't be internet enabled, unless you downgrade your OS. |
@migliorinie i know that setting it to false eliminates the exception |
The entire process works fine (signing, notarizing, building....) with internetEnabled: false
Once i change it to true (for it to unmount the image after install) i get that error
Exit code: 1. Command failed: hdiutil internet-enable -quiet
hdiutil: internet-enable: verb not recognized
The text was updated successfully, but these errors were encountered: