#On Windows, can I create an .exe instead of an .msi?

1 messages · Page 1 of 1 (latest)

flint shuttle
#

Title.

plucky jungle
#

you could just use the exe that at release/appname.exe

flint shuttle
#

true you right

#

The dist is packed inside the exe right?

#

I haven't looked inside.

plucky jungle
flint shuttle
#

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?

plucky jungle
#

you can change it in tauri.conf.json

flint shuttle
#

Do you know offhand which config key?

plucky jungle
flint shuttle
#

Yea but that's expecting to share the same npm config with the webapp.

plucky jungle
#

do you mean separated frontend and a webapp?

flint shuttle
#
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
plucky jungle
#

so do you mean separated frontend(html/js) and backend(rust)?

flint shuttle
#

Yea

plucky jungle
#

then just add a cd command into the beforeDevCommand

flint shuttle
#

heh yea that's what I figured

#

That'll work fine though. Thanks.

plucky jungle
#

then the layout would be like:

Project
├───frontend
│   ├───node_modules
│   ├───src
│   ├───dist
├───backend
│   ├───src
│   ├───target
│   └───Cargo.toml
flint shuttle
#

Yea collapsing it like that would be even better.

plucky jungle
#

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

flint shuttle
#

Yea that all makes sense. Thanks for the help!