Skip to content

The rui-helloworld demo playground based on rui-next with Vite and Tauri - (tauri+vite5).

License

Notifications You must be signed in to change notification settings

v-poc/vite-tauri-rui-poc

Repository files navigation

vite-tauri-rui-poc

RUI docs & demos Required Node.JS >= v16.0.0

INTRODUCTION

The HelloWorld demo based on RUI (react-hooks) with Vite 4 and Tauri.

RUI contains Mobile web UI components based on React.

Project setup

How to setup your project

npm i

Make sure to setup your environment for Tauri development.

Compiles and hot-reloads for development

npm start

Compiles and minifies for production

npm run build

The bundle dmg for macOS:

  • /vite-tauri-rui-poc/src-tauri/target/release/bundle/dmg/vite-tauri-rui-poc_(VERSION)_aarch64.dmg

The bundle exe for windows:

  • /vite-tauri-rui-poc/src-tauri/target/release/bundle/msi/vite-tauri-rui-poc_(VERSION)_x64_en-US.msi
  • /vite-tauri-rui-poc/src-tauri/target/release/bundle/nsis/vite-tauri-rui-poc_(VERSION)_x64-setup.exe

tauri info

> tauri "info" - macOS


[✔] Environment
    - OS: Mac OS 13.2.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.69.0 (84c898d65 2023-04-16)
    ✔ Cargo: 1.69.0 (6e9a83356 2023-04-12)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 16.14.0
    - pnpm: 8.3.1
    - yarn: 1.22.5
    - npm: 8.3.1

[-] Packages
    - tauri [RUST]: 1.3.0
    - tauri-build [RUST]: 1.3.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.1
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 1.3.1

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: Injected by vite-plugin-tauri, you can change this if you want to use tauri cli directly
    - devPath: Injected by vite-plugin-tauri, you can change this if you want to use tauri cli directly
    - framework: React
    - bundler: Vite
> tauri "info" - windows


[✔] Environment
    - OS: Windows 10.0.19044 X64
    ✔ WebView2: 113.0.1774.42
    ✔ rustc: 1.69.0 (84c898d65 2023-04-16)
    ✔ Cargo: 1.69.0 (6e9a83356 2023-04-12)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 16.17.0
    - npm: 9.6.7

[-] Packages
    - tauri [RUST]: 1.3.0
    - tauri-build [RUST]: 1.3.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.1
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 1.3.1

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: Injected by vite-plugin-tauri, you can change this if you want to use tauri cli directly
    - devPath: Injected by vite-plugin-tauri, you can change this if you want to use tauri cli directly
    - framework: React
    - bundler: Vite

Customize configuration

About vite and tauri, please check Configuration Reference - vite | tauri.

License

MIT License