-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundle / package / distribute as desktop app with tauri #215
Comments
I've toyed a bit with tauri, and it is pretty amazing.
|
Have been using tauri for a day, and have made a lot of progress. Absolutely amazing tool. However, I now feel kind of stuck. I'm trying to run a Rust server powered by actix from a tauri application. The problem is there are two async runtimes, and I think they might be incompatible. Every time I try to run async code, it simply does not execute. I first tried calling my async server creator inside a tauri spawn: tauri::async_runtime::spawn(async {
atomic_server_lib::serve::serve(&config_clone)
.await
.expect("could not start server");
}); But So I've tried using the actix runtime in tauri main.rs: #[actix_rt::main]
async fn main() {
actix_rt::spawn(async move {
println!("This will not print");
}); But now whatever is inside spawn will never even run. Then I have one more trick up my sleeve: let system = actix_rt::System::new("atomic-server");
actix_rt::spawn(async move {
println!("I'm printing just fine")
});
system.run().unwrap(); Which does run, but after calling tauri::async_runtime::spawn(async move {
let _r = system.run();
}); ... but I can't call that function in a Is there a way to combine both async runtimes? |
The beta version of actix will use the
|
This seems to fix the issue above: actix/actix-web@68a3acb next step is to check back and update |
Updating actix fixed compilation, but unfortunately not my initial problem of runtimes. I've specified my problem in tauri discussion board: tauri-apps/tauri#2942 |
Ok, the basis is set up. Some work is left to do, but I'll open new issues for that. |
The app is currently installable as a PWA, which offers a decent UX for android, but still kind of sucks for desktops.
I want users to:
.dmg
for mac) with iconsThese things require a different way of bundling / distributing a desktop app.
Tauri
tauri (setup link) is a really interesting as a platform for distributing this app, especially if we can combine it with
atomic-server
in one package.That means we can have a single
.exe
or.dmg
file that just works, has a tray icon, and more...The text was updated successfully, but these errors were encountered: