Fix builds on M1 (#54)

This commit is contained in:
Syntax 2022-04-28 20:56:31 -05:00 committed by GitHub
parent 0e1855526f
commit a89f5740ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -1,2 +1,8 @@
[alias]
prisma = "run -p prisma-cli --"
prisma = "run -p prisma-cli --"
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

View file

@ -35,6 +35,8 @@ Scan through our [existing issues](https://github.com/github/docs/issues) to fin
This project uses [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) and [pnpm](https://pnpm.io/installation). Ensure you have them installed before continuing.
> Note: MacOS M1 users should choose the customize option in the rustup init script and enter `x86_64-apple-darwin` as the default host triple instead of the default `aarch64-apple-darwin`
- `$ git clone https://github.com/spacedriveapp/spacedrive`
- For Linux or MacOS users run: `chmod +x ./.github/scripts/setup-system.sh && ./.github/scripts/setup-system.sh`
- This will install FFMPEG and any other required dependencies for Spacedrive to build.