tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
84.94k stars 2.56k forks source link

[feat] about Tauri support for RISC-V platform #10945

Open lily-Robot opened 2 months ago

lily-Robot commented 2 months ago

Describe the problem

I am evaluating the possibility of using Tauri to build desktop applications for the RISC-V platform. I would like to know if Tauri currently supports the RISC-V architecture, and whether there are any success stories or documentation available that could help me compile Tauri applications for RISC-V?

Describe the solution you'd like

If there is any relevant information or advice, could you please share it? Thank you!

Alternatives considered

No response

Additional context

No response

lily-Robot commented 2 months ago

Or rather, I'd like to know how to port it, which is currently on the RISCR V 64 platform, Porting packages such as node, gtk, chorme is approaching maturity. I would like to participate in RISC V 64 support if I can

FabianLars commented 2 months ago

I'm not aware of anything other than https://github.com/tauri-apps/tauri/issues/8326 which is not much 🤷

JaneX8 commented 6 days ago

I'm also interested in building Tauri apps for (and on) riscv architecture. So far I've tried the following inside a QEMU emulator. Using the riscv64-virt image and inspired by https://gist.github.com/apivovarov/98120ffb2d92f9dfce39925801271606. But without success.

root@debian:/home/debian# uname -r
6.8.12-riscv64

root@debian:/home/debian# sh <(curl https://create.tauri.app/sh)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16121  100 16121    0     0  14920      0  0:00:01  0:00:01 --:--:-- 15080
create-tauri-app: unknown CPU type: riscv64

Rust (https://doc.rust-lang.org/beta/book/ch01-02-hello-world.html) works fine on riscv:

root@debian:/home/debian# apt install build-essential
root@debian:/home/debian# curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
info: downloading installer
...
Current installation options:
   default host triple: riscv64gc-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

root@debian:/home/debian# rustc --version
rustc 1.82.0 (f6e511eec 2024-10-15)

root@debian:~/projects/hello# rustc main.rs
root@debian:~/projects/hello# ./main
Hello, world!