-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Describe the problem
Currently there is no way to deploy a "standalone" dev
build using precompiled assets on desktop or mobile i.e. A Rust debug build with compiled assets from npm run build
. This means that all builds which are deployed using cargo tauri dev
require the development server to be running to serve assets.
While this is useful in enabling hot-reload, it prevents debugging without the development server i.e. You cannot deploy to an Android or iOS device and run the app without the development server. This also means you don't get a true indication of the performance due to network latency when loading assets over TCP/IP.
Describe the solution you'd like
Add a flag to the CLI i.e. --standalone-mode
which produces an app bundle with the debug build + static assets. This can then be deployed on either desktop or mobile to run "standalone" without a development server.
Alternatives considered
No response
Additional context
Discussed on Discord and @FabianLars commented:
i don't think this is directly supported. The closest thing is tauri android build --debug but that won't install the app automatically.