He there everyone ~!
I'm working on app that's targeted to have a universal release, we recently incorporated a utilityProcess fork which is in charge of handling certain data pattern, for it we included certain native dependencies. The problem is that even when specifying the target as universal, the app packages both the x64 and arm64 apps, but only includes the native dependencies based on the host system architecture, so I've I build on my Intel Based system, it works perfectly fine, but arm64 users will get have 'x86_64', need 'arm64' and viceversa, if one of my teamates build on arm64 I get have 'arm64', need 'x86_64'
...
npmRebuild: true,
mac: {
...
target: [
{
target: 'dmg',
arch: 'universal',
},
{
target: 'zip',
arch: 'universal',
},
],
...
},
...
The build is run the following way.
ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --mac --universal --publish never --config electron-builder.config.js
Here's the important version numbers
"electron": "^29.1.3",
"electron-builder": "^24.13.3",
"electron-store": "^8.1.0",
"electron-updater": "^5.3.0",