This document describes the setup process for the development environment, including project configuration, third-party tool installation, and automatic update configuration and testing.
-
Application Name:
- Open
src-tauri/tauri.conf.jsonand update theproductNamefield. - Update the
namefield in bothCargo.tomlfiles (root and src-tauri). - Update the
AppNameininstaller.iss.
- Open
-
Version Number:
- Update the
versionfield in bothCargo.tomlfiles andsrc-tauri/tauri.conf.json.
- Update the
-
Bundle Identifier:
- Update the
identifierfield insrc-tauri/tauri.conf.json.
- Update the
-
Icons:
- Replace
icon.pngin the project root with your own high-resolution icon (1024x1024 recommended). - Run
python generate_icons.pyto generate platform-specific icons.
- Replace
-
Rust:
- Install from https://rustup.rs/
-
Tauri CLI:
cargo install tauri-cli --version "^2.0.0-rc" -
xmake:
- Install from https://xmake.io/#/getting_started
-
Platform-specific tools:
- Visual Studio Build Tools 2019 or later
- Inno Setup: https://jrsoftware.org/isdl.php
- Xcode 12 or later
- Command Line Tools:
xcode-select --install
- Install development packages:
sudo apt install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- Xcode 12 or later
- iOS SDK
- Android Studio: https://developer.android.com/studio
- Android SDK
- Android NDK
-
Cargo plugins:
cargo install cargo-deb cargo-rpm
-
Clone the repository:
git clone https://github.com/modasi/webview-ipc-app.git cd webview-ipc-app -
Install dependencies:
cargo build -
Run the development version:
cargo tauri dev -
Build the release version:
cargo tauri build
-
Generate a key pair for signing updates:
tauri signer generate -w ~/.tauri/myapp.key -
Update
src-tauri/tauri.conf.json:- Set
tauri.updater.activetotrue - Update
tauri.updater.endpointswith your update server URL - Set
tauri.updater.pubkeyto the public key generated in step 1
- Set
-
Set up an update server:
- Create a server to host your update files
- Ensure it's accessible via HTTPS
-
Build your initial release:
cargo tauri build -
Increment the version number in
src-tauri/tauri.conf.jsonand bothCargo.tomlfiles -
Create an update:
python create_update.py -
Upload the generated files in the
releasesdirectory to your update server -
Run the initial release version of your app and check if it detects and installs the update
Run the following command to build installers for your current platform:
python build_installer.py
Note: Building for iOS and Android requires additional setup and may need manual intervention in Xcode or Android Studio.
-
If you encounter any issues with dependencies, try updating Rust and your cargo packages:
rustup update cargo update -
For platform-specific issues, consult the Tauri documentation: https://tauri.app/v1/guides/
-
Ensure all paths in scripts and configuration files match your project structure
Remember to test your build on all target platforms before distribution.