Skip to content

Latest commit

 

History

History
29 lines (29 loc) · 947 Bytes

BuildAndBundle.md

File metadata and controls

29 lines (29 loc) · 947 Bytes

Building and Bundling the app

  1. First, create the app:
$ npx create-react-app tauri-tutorial
  1. Next, cd into tauri-tutorial and install Tauri to that app:
$ yarn add tauri
  1. Add the following to the scripts section of package.json
"tauri": "tauri",
"dev": "npm run tauri dev",
"bundle": "tauri build",
  1. Now we have to initalize the Tauri app. That can be done with the following:
$ npm run tauri init
  1. Then, we have to tell npm to build our app:
npm run build
  1. 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.