I am using electron forge to create the dmg file from my electron app. I am using @electron-forge/maker-dmg
to make the dmg.
My customers complain that the dmg cannot be used in their Intel machines. I tried searching around on how to make an Intel version of a dmg and could not find it.
Any electron forge pros out there? I am using an M1 Max to build the app.
My package.json
looks like:
{
"name": "XXX",
"version": "XXX",
"description": "XXX",
"main": "main.js",
"author": "Alex Styl",
"license": "MIT",
"devDependencies": {
"@electron-forge/cli": "^6.0.0-beta.66",
"@electron-forge/maker-deb": "^6.0.0-beta.66",
"@electron-forge/maker-dmg": "^6.0.0-beta.66",
"@electron-forge/maker-rpm": "^6.0.0-beta.66",
"@electron-forge/maker-squirrel": "^6.0.0-beta.66",
"@electron-forge/maker-zip": "^6.0.0-beta.66",
"electron": "^21.0.0"
},
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make"
},
"dependencies": {
"electron-fetch": "^1.7.4",
"electron-json-storage": "^4.5.0",
"electron-prompt": "^1.7.0",
"electron-squirrel-startup": "^1.0.0",
// and others
},
"config": {
"forge": {
"packagerConfig": {
"extendInfo": "Info.plist",
"icon": "images/mac-icon.icns",
"osxSign": {
"identity": "XXX",
"hardened-runtime": true,
"entitlements": "entitlements.plist",
"entitlements-inherit": "entitlements.plist",
"signature-flags": "library"
},
"osxNotarize": {
"appleId": "XXX",
"appleIdPassword": "XXX"
}
},
"makers": [
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "XXX"
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin"
]
},
{
"name": "@electron-forge/maker-dmg",
"config": {
"format": "ULFO"
}
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-rpm",
"config": {}
}
]
}
}
}