- Rust
- Node.js
- Clone the repository
- Add a
config.rs
file for the smpt config undersrc-tauri/src
to send crash reports to the developer.
use serde::Deserialize;
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct AppCfg {
pub crash_report_email: String,
pub crash_report_email_password: String,
pub crash_report_smtp_server: String,
pub crash_report_smtp_port: u16,
}
impl Default for AppCfg {
fn default() -> Self {
AppCfg {
crash_report_email: "".to_string(),
crash_report_email_password: "".to_string(),
crash_report_smtp_server: "".to_string(),
crash_report_smtp_port: 465,
}
}
}
- Run
npm install
- Run
npm run tauri dev
Tauri does not support cross-compiling yet, so you need to build the app on the target platform. Set environment variables for the signing the app. Note: This is not the Apple Signing process.
export TAURI_SIGNING_PRIVATE_KEY="Path or content of your private key"
export TAURI_SIGNING_PRIVATE_KEY_PASSWORD=""
Build for both Apple Silicon and Intel
npm run tauri build -- --target universal-apple-darwin
npm run tauri build
npm run tauri build