afanasjev82 / tauri-app-vanilla

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tauri example app

This is a Tauri app that opens a pre-specified URL in the default system browser and persists own state between sessions.

Prerequisites

Getting started

  1. Clone the repository:

    git clone https://github.com/afanasjev82/tauri-app-vanilla.git
    cd ./tauri-app-vanilla
  2. Edit the ./src-tauri/tauri.conf.json file to specify the default URL to open.

  3. (optional) Install GNU build tools and set as default compiler

    rustup target add x86_64-pc-windows-gnu
    rustup toolchain install stable-x86_64-pc-windows-gnu
    rustup set default-host x86_64-pc-windows-gnu
  4. Build the app:

    // default compiler
    cargo tauri build
    // 
    cargo tauri build --target=x86_64-pc-windows-msvc
  5. Run the app by executing

    ./src-tauri/target/release/tauri-app-vanilla.exe http://neti.ee
  6. (optional) Execite app in development mode

    cargo tauri dev -- -- http://neti.ee

Recommended IDE Setup

About


Languages

Language:HTML 81.5%Language:CSS 9.3%Language:Rust 9.2%