This commit is contained in:
Kaloyan Manolov 2025-05-10 03:05:17 -04:00 committed by GitHub
commit 4d0cb4b46d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,6 +59,9 @@ const runBuilder = function (wrapperConfig, target) {
let allArgs = [platformFlag, target.name];
if (target.platform === 'darwin') {
allArgs.push(`--c.mac.type=${wrapperConfig.mode === 'dist' ? 'distribution' : 'development'}`);
// this needs to be built on an arm64 mac, in order for the executable to be able
// to run on both x86-64 and arm64 architectures.
allArgs.push('--universal');
if (target.name === 'mas-dev') {
allArgs.push(`--c.mac.provisioningProfile=${masDevProfile}`);
}