install.sh: check if on riscv64, and if so bail out (#21924)

### What does this PR do?

Solves https://github.com/oven-sh/bun/issues/21923

So: if on riscv64, bail out, and do not install the x86-64 version of
bun

### How did you verify your code works?

On my RISCV system:

```
git clone https://github.com/sanderjo/bun.git sjo-oven-sh-bun
cd sjo-oven-sh-bun/
git branch -a
git checkout origin/detect_and_refuse_riscv64
grep -irn riscv64 src/cli/install.sh 
```
Yes, correct. And then:

```
sander@riscv:~/git/sjo-oven-sh-bun$ bash src/cli/install.sh
error: Not supported on riscv64
sander@riscv:~/git/sjo-oven-sh-bun$
```

Good.

Co-authored-by: sanderjo <sander.jonkers+github@github.com>
This commit is contained in:
Sander
2025-08-18 08:34:03 +02:00
committed by GitHub
parent 5fd3a42fe6
commit cf868fd4c6

View File

@@ -73,6 +73,9 @@ case $platform in
'MINGW64'*)
target=windows-x64
;;
'Linux riscv64')
error 'Not supported on riscv64'
;;
'Linux x86_64' | *)
target=linux-x64
;;