Skip to content

Commit

Permalink
Add support for building arm64 dmg (Apple Silicon processors) (#157).
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed May 14, 2021
1 parent be4a42b commit cd1ca7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ If you download from the [Releases](https://github.com/dscalzi/HeliosLauncher/re
| Platform | File |
| -------- | ---- |
| Windows x64 | `Helios-Launcher-setup-VERSION.exe` |
| macOS | `Helios-Launcher-setup-VERSION.dmg` |
| macOS x64 | `Helios-Launcher-setup-VERSION.dmg` |
| macOS arm64 | `Helios-Launcher-setup-VERSION-arm64.dmg` |
| Linux x64 | `Helios-Launcher-setup-VERSION.AppImage` |

## Console
Expand Down
2 changes: 1 addition & 1 deletion app/assets/js/scripts/uicore.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if(!isDev){
loggerAutoUpdaterSuccess.log('New update available', info.version)

if(process.platform === 'darwin'){
info.darwindownload = `https://github.com/dscalzi/HeliosLauncher/releases/download/v${info.version}/helioslauncher-setup-${info.version}.dmg`
info.darwindownload = `https://github.com/dscalzi/HeliosLauncher/releases/download/v${info.version}/helioslauncher-setup-${info.version}${process.arch === 'arm64' ? '-arm64' : ''}.dmg`
showUpdateUI(info)
}

Expand Down
7 changes: 6 additions & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ nsis:

# macOS Configuration
mac:
target: 'dmg'
target:
- target: 'dmg'
arch:
- 'x64'
- 'arm64'
artifactName: '${productName}-setup-${version}-${arch}.${ext}'
category: 'public.app-category.games'

# Linux Configuration
Expand Down

0 comments on commit cd1ca7e

Please sign in to comment.