#On Windows, can I create an .exe instead of an .msi?
1 messages · Page 1 of 1 (latest)
you could just use the exe that at release/appname.exe
true you right
The dist is packed inside the exe right?
I haven't looked inside.
yes
Cool thanks. One more question: I want to keep the Tauri project in a separate folder from my webapp. When Tauri runs npm run dev it's expecting to be inside the webapp directory, can I change that?
you can change it in tauri.conf.json
Do you know offhand which config key?
Yea but that's expecting to share the same npm config with the webapp.
do you mean separated frontend and a webapp?
Project
├───client
│ ├───node_modules
│ ├───src
│ ├───dist
├───desktop
│ ├───node_modules
│ └───src-tauri
Like this. I'd like to keep my webapp (client) separate from Tauri.
Whereas Tauri is expects this by default:
Project
├───client
│ ├───node_modules
│ ├───src
│ ├───src-tauri
│ ├───dist
so do you mean separated frontend(html/js) and backend(rust)?
Yea
then just add a cd command into the beforeDevCommand
then the layout would be like:
Project
├───frontend
│ ├───node_modules
│ ├───src
│ ├───dist
├───backend
│ ├───src
│ ├───target
│ └───Cargo.toml
Yea collapsing it like that would be even better.
then I think you could just move all thing expect src-tauri into a folder
then rename src-tauri to something you want
then add cd command into beforeDevCommand and beforeBuildCommand
and change the dist path
Yea that all makes sense. Thanks for the help!