From 13abb5d5032aa890661756eaa243d31b117a8c5d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 23 May 2024 20:11:16 +0200 Subject: [PATCH] Add build example --- README.md | 28 ++++++++++++++++++++++++++++ src-tauri/Cargo.toml | 8 ++++---- src-tauri/tauri.conf.json | 2 +- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 13ca50e..61764ae 100644 --- a/README.md +++ b/README.md @@ -1 +1,29 @@ # xtoyr + +Write french words. + +## User documentation + +This software isn't released yet. + +## Developer documentation + +> See [system requirements](https://tauri.app/v1/guides/getting-started/prerequisites#1-system-dependencies) + +This project use [Tauri v1](https://tauri.app). + +### See changes + +```sh +cargo tauri dev +``` + +### Build + + + +```sh +cargo tauri build --target x86_64-pc-windows-gnu +``` + +This creates installer at `src-tauri/target/x86_64-pc-windows-gnu/release/xtoyr.exe`. diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index db52beb..dbe86dd 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -8,12 +8,12 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [build-dependencies] -tauri-build = { version = "1", features = [] } +tauri-build = { version = "1.5", features = [] } [dependencies] -tauri = { version = "1", features = ["shell-open"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1" +tauri = { version = "1.6", features = ["shell-open"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" [features] # This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!! diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index ddf9eae..3f2d63b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -27,7 +27,7 @@ "csp": null }, "bundle": { - "active": true, + "active": false, "targets": "all", "identifier": "fr.mylloon", "icon": ["icons/icon.png", "icons/icon.ico"]