From e5eb1e151aa426664e4dbf3e778dd9daa908474c Mon Sep 17 00:00:00 2001 From: Amit Haridas Date: Mon, 18 May 2026 00:14:04 +0530 Subject: [PATCH] feat: configure file associations and NSIS installer Co-Authored-By: Claude Opus 4.7 --- src-tauri/.cargo/config.toml | 5 +++++ src-tauri/tauri.conf.json | 23 ++++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src-tauri/.cargo/config.toml diff --git a/src-tauri/.cargo/config.toml b/src-tauri/.cargo/config.toml new file mode 100644 index 0000000..485b2d8 --- /dev/null +++ b/src-tauri/.cargo/config.toml @@ -0,0 +1,5 @@ +[build] +rustflags = ["-C", "target-cpu=native"] + +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 692804b..fb63a6a 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -37,11 +37,32 @@ "../assets/icons/icon.icns", "../assets/icons/icon.ico" ], + "fileAssociations": [ + { + "ext": ["md", "markdown"], + "name": "Markdown Document", + "description": "Markdown Document", + "role": "Editor", + "mimeType": "text/markdown" + }, + { + "ext": ["pdf"], + "name": "PDF Document", + "description": "PDF Document", + "role": "Viewer", + "mimeType": "application/pdf" + } + ], "resources": {}, "windows": { "certificateThumbprint": null, "digestAlgorithm": "sha256", - "timestampUrl": "" + "timestampUrl": "", + "nsis": { + "languages": ["English", "German", "French", "Spanish", "Portuguese", "Japanese", "Korean", "SimpChinese", "TradChinese"], + "displayLanguageSelector": true, + "installMode": "currentUser" + } } }, "plugins": {