Add support for Apple Silicon processors

I saw we can build for new Apple Sillicon processors, so here you are
This commit is contained in:
GeekCorner 2021-04-06 14:52:06 +02:00 committed by GitHub
parent 48d0c9e549
commit c04cbb5ccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {