- First, create the app:
$ npx create-react-app tauri-tutorial
- Next,
cd
into tauri-tutorial and install Tauri to that app:
$ yarn add tauri
- Add the following to the
scripts
section ofpackage.json
"tauri": "tauri",
"dev": "npm run tauri dev",
"bundle": "tauri build",
- Now we have to initalize the Tauri app. That can be done with the following:
$ npm run tauri init
- Then, we have to tell npm to build our app:
npm run build
- Finallly, we have to build the binary of our Tauri app:
npm run bundle
The bundle command will take some time to run the first time it is being run. This is becuase it has to download all the Tauri crates. It will be faster on future runs.
Once it is done running, you will find the binaries in the format of the specific os in the folder tauri-tutorial/src-tauri/target/release/bundle
.