Add support for Apple Silicon Macs, by hardcoding x64 mode in Phoenix

merge-requests/150/merge
Matthew Chambers 2021-12-16 14:45:31 -06:00
rodzic 0cec076dbb
commit 28772768e8
2 zmienionych plików z 10 dodań i 4 usunięć

Wyświetl plik

@ -31,10 +31,18 @@ automatically, but if you want to run on the command line, you can (after runnin
# Developer Environment Setup
Our builds and development environment are usually managed by [nwjs-builder-phoenix](https://github.com/evshiron/nwjs-builder-phoenix), but it only supports Intel-based architectures.
## x86-based Windows, Mac, Linux
Run `npm install` and then `npm start`
## Apple Silicon Macs (M1, M1 Pro, M1 Max)
Phoenix does not support ARM-based macs, so we have to explicitly tell it to use Intel-based versions of NWJS.
Run `npm install` and then `npm start-x64`
## ARM-based Raspberry
Run `npm install`.

Wyświetl plik

@ -16,9 +16,7 @@
"dist-nix": "build --concurrent --tasks linux-x86,linux-x64,mac-x64 package.nw",
"dist-win": "build --concurrent --tasks win-x86,win-x64 package.nw",
"distsome": "build --debug --tasks linux-x64,mac-x64 package.nw",
"start": "run package.nw"
},
"dependencies": {
"banana-i18n": "^2.1.0"
"start": "run package.nw",
"start-x64": "run --x64 package.nw"
}
}