mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #4904] [feature]: Update hoppscotch-selfhost-desktop to Tauri v2 #1848
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1848
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ImNicolasTheDev on GitHub (Mar 18, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4904
Is there an existing issue for this?
Summary
The package
hoppscotch-selfhost-desktopshould be updated to Tauri v2. The doc to update from Tauri v1 can be found here: https://v2.tauri.app/start/migrate/from-tauri-1/Some work needs to be done to update the rust code, as mentioned in this issue:
After some testing, I can give some hints to start the update (I'm stuck on updating the rust code in the
src-tauri/src/):src/(typescript) and thesrc-tauri/src/(rust). For example, on the typescript side,getWindow()does not exist in v2. You need to importimport { getCurrentWindow } from "@tauri-apps/api/window".Another example would be in the rust side to not use
listen_global(), but usetauri::Listenerand replace bylisten_any(), and not useemit_all()but usetauri::Emitterand replace byemit().package.jsonfile inpackages/hoppscotch-selfhost-desktopafter the migration:I'm now stuck to update the rust code, for which I don't have enough knowledge to do so. Help needed!
Why should this be worked on?
This should be high priority as it could resolve a lot of different errors faced by users, and more importantly be more up-to-date as other projects created in Hoppscotch (i.e.: hoppscotch agent).