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:
parent
48d0c9e549
commit
c04cbb5ccc
11
build.js
11
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: {
|
||||
|
Loading…
Reference in New Issue
Block a user