Tauri Integration
Please note: you must have completed all the steps required for setting up the development environment on your machine. If you haven't done this yet, please see the setup page for your operating system.
- Install tauri-cli as Dependency:
Note: You can install tauri as both a local and a global dependency.
- Check
tauri info to make sure you have everything you need:
Which should return something like:
This information can be very helpful when triaging problems.
- Initialize tauri
This command will place a new folder in your CWD, src-tauri.
src-tauri/tauri.conf.json
Edit src-tauri/tauri.conf.json:
Depending on your development setup, you will probably need to update two important entry points for tauri:
- your bundled assets (
distDir) - a relative file path from this file's CWD
- your development server (
devPath) - a localhost
Note: technically you can point the devPath at a folder, and tauri will try to serve those assets statically.
Warning: On some system setups, localhost may not be available. A general rule of thumb is to use exactly the same domain as your devServer. You can try to switch localhost here with:
On windows, you must enable loopback during development. todo: add link
vue-cli-plugin-tauri
See vue-cli-plugin-tauri's repo.
tauri-webpack
todo
Next Step:
App Development