Add support for building arm64 dmg (Apple Silicon processors) (#157).

This commit is contained in:
Daniel Scalzi 2021-05-13 21:49:18 -04:00
parent be4a42b50a
commit cd1ca7edf5
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57
3 changed files with 9 additions and 3 deletions

View File

@ -54,7 +54,8 @@ If you download from the [Releases](https://github.com/dscalzi/HeliosLauncher/re
| Platform | File | | Platform | File |
| -------- | ---- | | -------- | ---- |
| Windows x64 | `Helios-Launcher-setup-VERSION.exe` | | 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` | | Linux x64 | `Helios-Launcher-setup-VERSION.AppImage` |
## Console ## Console

View File

@ -49,7 +49,7 @@ if(!isDev){
loggerAutoUpdaterSuccess.log('New update available', info.version) loggerAutoUpdaterSuccess.log('New update available', info.version)
if(process.platform === 'darwin'){ 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) showUpdateUI(info)
} }

View File

@ -28,7 +28,12 @@ nsis:
# macOS Configuration # macOS Configuration
mac: mac:
target: 'dmg' target:
- target: 'dmg'
arch:
- 'x64'
- 'arm64'
artifactName: '${productName}-setup-${version}-${arch}.${ext}'
category: 'public.app-category.games' category: 'public.app-category.games'
# Linux Configuration # Linux Configuration