electron-builder
electron-builder copied to clipboard
**Asset validation failed (90236) icon required missing**
Asset validation failed (90236) icon required missing.
Electron-builder
22.14.3
Electron: 8.5.5
Node Version:
14.18.3:
platform
*** MAC OS :**
*** Target :** MAS :pkg installer for mac app store
I am trying to create mas pkg installer for mac app store, all things are working fine, but when i am trying to upload to store via Transporter and during verification , it says, asset validation failed. Icon missing, though I have .icns extension icon and its placed in resources only this issue I am seeing. can anybody let me know how can fix this.
here my mac and mas configuration of package.json
`"build": { "appId": "com..", "afterSign": "./resources/notarize.js", "mac": { "icon": "icon.icns", "hardenedRuntime": true, "entitlements": "./resources/entitlements.mac.plist", "entitlementsInherit": "./resources/entitlements.mac.plist", "target": ["dmg", "mas"] }, "mas": { "type": "distribution", "hardenedRuntime": false, "entitlements": "resources/entitlements.mas.plist", "entitlementsInherit": "resources/entitlements.mas.inherit.plist", "provisioningProfile": "resources/magnifhire2022.provisionprofile", "asarUnpack": [] }, "files": [], "directories": { "output": "release", "buildResources": "resources" } }
`
Hmmm Have you tried placing icon
within the mas
config?
My other best guess is that the icns could need to be regenerated if it's not containing the correct image asset sizes embedded with it.
I am actually aboe to replac icon in mas too. in advance, when I explored Contents of the app, I saw in resources icon.icns file is placed. but when pkg installer file is uploaded it says, icon is missing . For regeneration I put icon.png with 512*512 by uisng iconutil -c icns icon.iconse. its generated icon.icns file.
You also need a 1024x1024 icon (512x512@2x)
In icon.icns ? yes, I place this too, but when i generate icns, it only created icon.icns, Where do I place 1024x1024 ?
In the icns file