mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Handle uname -m returning arm64
This commit is contained in:
@@ -132,7 +132,7 @@ Prerequisites:
|
|||||||
```
|
```
|
||||||
* Install the Android Rust toolchain for your machine's hardware:
|
* Install the Android Rust toolchain for your machine's hardware:
|
||||||
```
|
```
|
||||||
rustup target add `uname -m`-linux-android
|
rustup target add aarch64-linux-android x86_64-linux-android
|
||||||
```
|
```
|
||||||
* Depending on the location of the Android SDK, you may need to set
|
* Depending on the location of the Android SDK, you may need to set
|
||||||
`ANDROID_HOME`:
|
`ANDROID_HOME`:
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ buildApp=${buildApp:-no}
|
|||||||
cd "${elementPwd}"
|
cd "${elementPwd}"
|
||||||
|
|
||||||
default_arch="$(uname -m)-linux-android"
|
default_arch="$(uname -m)-linux-android"
|
||||||
|
# On ARM MacOS, `uname -m` returns arm64, but the toolchain is called aarch64
|
||||||
|
default_arch="${default_arch/arm64/aarch64}"
|
||||||
|
|
||||||
read -p "Enter the architecture you want to build for (default '$default_arch'): " target_arch
|
read -p "Enter the architecture you want to build for (default '$default_arch'): " target_arch
|
||||||
target_arch="${target_arch:-${default_arch}}"
|
target_arch="${target_arch:-${default_arch}}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user