Skip to content

feat: basic support for linux riscv64#12602

Merged
lucasfernog merged 1 commit intotauri-apps:devfrom
kxxt:riscv64
Mar 16, 2025
Merged

feat: basic support for linux riscv64#12602
lucasfernog merged 1 commit intotauri-apps:devfrom
kxxt:riscv64

Conversation

@kxxt
Copy link
Contributor

@kxxt kxxt commented Feb 3, 2025

This PR introduces basic support for riscv64.

Tests done on Arch Linux riscv64:

closes #7522 (A new release on npm should be necessary)
closes #10945

@kxxt kxxt requested a review from a team as a code owner February 3, 2025 12:18
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2025

Package Changes Through 552f960

There are 5 changes which include tauri-cli with minor, tauri with patch, tauri-utils with minor, tauri-bundler with minor, @tauri-apps/cli with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.2.0 2.3.0
tauri-bundler 2.2.4 2.3.0
tauri-runtime 2.4.0 2.4.1
tauri-runtime-wry 2.4.0 2.4.1
tauri-codegen 2.0.5 2.0.6
tauri-macros 2.0.5 2.0.6
tauri-plugin 2.0.5 2.0.6
tauri-build 2.0.6 2.0.7
tauri 2.3.0 2.3.1
@tauri-apps/cli 2.3.0 2.4.0
tauri-cli 2.3.0 2.4.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@FabianLars
Copy link
Member

Thanks for the PR. Did you only test tauri dev or also tauri build (including bundling)? I'm very certain that the changes in the appimage bundler won't work because none of the appimage tools we use (linuxdeploy + plugins etc) support riscv.
That doesn't make me hopeful for the deb/rpm changes as well but i'm a bit too out of the loop there to judge that.

@kxxt
Copy link
Contributor Author

kxxt commented Feb 20, 2025

Thanks for the PR. Did you only test tauri dev or also tauri build (including bundling)?

I tested cargo tauri build -b deb --ci but didn't test tauri dev. I can do further testing of more commands if necessary.

I'm very certain that the changes in the appimage bundler won't work because none of the appimage tools we use (linuxdeploy + plugins etc) support riscv.

Yes. But adding riscv there should make the code future-proof when the appimage tools start supporting riscv.

@FabianLars
Copy link
Member

I tested cargo tauri build -b deb --ci but didn't test tauri dev. I can do further testing of more commands if necessary.

i don't care too much about tauri dev (if you're running a riscv system) but the rpm bundler should be tested as well if you change its code.

Yes. But adding riscv there should make the code future-proof when the appimage tools start supporting riscv.

That is in the very far future (or potentially never) and with your changes the user facing error now isn't as clear anymore. Without your changes the user will get a "unsupported platform" error and now they'll probably get an http error instead.

@kxxt
Copy link
Contributor Author

kxxt commented Feb 20, 2025

i don't care too much about tauri dev (if you're running a riscv system) but the rpm bundler should be tested as well if you change its code.

Thanks! I will test the rpm bundler. Marking this PR as draft until test is done.

That is in the very far future (or potentially never) and with your changes the user facing error now isn't as clear anymore. Without your changes the user will get a "unsupported platform" error and now they'll probably get an http error instead.

Your concern is certainly valid. We riscv64 packagers are generally familiar with http error encountered when a prebuilt asset isn't available for riscv64. But for normal users that error might be a little cryptic. I will remove the changes to the appimage code.

@kxxt kxxt marked this pull request as draft February 20, 2025 12:38
@kxxt
Copy link
Contributor Author

kxxt commented Feb 21, 2025

I have tested that the rpm bundler works for riscv64.

image

@kxxt kxxt marked this pull request as ready for review February 21, 2025 04:23
@kxxt
Copy link
Contributor Author

kxxt commented Feb 21, 2025

I have dropped the changes to appimage bundler. I think this PR is ready for review now.

@FabianLars FabianLars added this to the 2.4 milestone Feb 28, 2025
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Feb 28, 2025
Copy link
Member

@lucasfernog lucasfernog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm gonna trust your tests here since i can't easily test on riscv64, code wise it looks good

@lucasfernog lucasfernog merged commit f981a5e into tauri-apps:dev Mar 16, 2025
29 checks passed
@github-project-automation github-project-automation bot moved this from 📬Proposal to 🔎 In audit in Roadmap Mar 16, 2025
lucasfernog added a commit to tauri-apps/plugins-workspace that referenced this pull request Mar 16, 2025
Tauri now supports it, so the updater should check the riscv64 arch and replace the {{arch}} and {{target}} variables properly.

ref tauri-apps/tauri#12602
amrbashir pushed a commit to tauri-apps/plugins-workspace that referenced this pull request Mar 17, 2025
Tauri now supports it, so the updater should check the riscv64 arch and replace the {{arch}} and {{target}} variables properly.

ref tauri-apps/tauri#12602
tauri-bot pushed a commit to tauri-apps/tauri-plugin-updater that referenced this pull request Mar 17, 2025
Tauri now supports it, so the updater should check the riscv64 arch and replace the {{arch}} and {{target}} variables properly.

ref tauri-apps/tauri#12602

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/13889123357

Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
powell-newin pushed a commit to powell-newin/plugins-workspace that referenced this pull request Mar 18, 2025
Tauri now supports it, so the updater should check the riscv64 arch and replace the {{arch}} and {{target}} variables properly.

ref tauri-apps/tauri#12602
kandrelczyk pushed a commit to kandrelczyk/tauri that referenced this pull request Apr 7, 2025
gezihuzi pushed a commit to Hypobenthos/plugins-workspace that referenced this pull request Jun 22, 2025
Tauri now supports it, so the updater should check the riscv64 arch and replace the {{arch}} and {{target}} variables properly.

ref tauri-apps/tauri#12602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 In audit

Development

Successfully merging this pull request may close these issues.

[feat] about Tauri support for RISC-V platform [feat] riscv64 support

3 participants