Is it possible to create a standalone binary? #3048
-
The build/bundler seems to want to build packages that need to be installed. However I would much prefer a portable app that can be packaged as a single binary and run from the directory without needing to be installed. I'm on Windows 11 FWIW but the question is really more general since it should be possible on any OS. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
So I discovered I can just run the .exe from src-tauri/target/release and that works, at least in my case. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm not sure if I should open a new discussion/issue, but I would like to be able to create a standalone binary, in my case on Linux, because building AppImage and deb wouldn't make sense on the Arch User Repository/AUR or even just for oneself if they want to use just the binary. |
Beta Was this translation helpful? Give feedback.
-
Anyway,Making Portable programs is a very important requirement |
Beta Was this translation helpful? Give feedback.
-
I've made some progress in this direction with https://github.com/JohnScience/tauriless/. However, I'm not quite sure how to detect presence of Would it be possible/sensible to use |
Beta Was this translation helpful? Give feedback.
-
I tried to run my binary on a Windows 11 machine (that ships with Webview2) and has vcredist installed, the behavior is as others describe. What else are the MSI and NSIS installers putting it in place that allow Tauri apps to run? |
Beta Was this translation helpful? Give feedback.
So I discovered I can just run the .exe from src-tauri/target/release and that works, at least in my case.