diff --git a/build.js b/build.js index e96e733e..5a2f8ce1 100644 --- a/build.js +++ b/build.js @@ -1,8 +1,8 @@ const builder = require('electron-builder') const Platform = builder.Platform -function getCurrentPlatform(){ - switch(process.platform){ +function getCurrentPlatform() { + switch (process.platform) { case 'win32': return Platform.WINDOWS case 'darwin': @@ -41,7 +41,12 @@ builder.build({ allowToChangeInstallationDirectory: true }, mac: { - target: 'dmg', + target: [ + { + target: 'dmg', + arch: ['x64', 'arm64'] + } + ], category: 'public.app-category.games' }, linux: { @@ -65,4 +70,4 @@ builder.build({ console.log('Build complete!') }).catch(err => { console.error('Error during build!', err) -}) \ No newline at end of file +})