mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
* fix: CEF CI * fmt * update to rust 1.88, edition 2024 * install x86_64-apple-darwin * linux clippy * fix --all-features * more all-features fixes * install x86 apple * fix windows * fix doc tests * skip --all-featuress test for android and ios * more clippy fixes * install target * fix build, clippy * export cef for tests * pin version * fix arg
File Associations Example
This example demonstrates how to make associations between the application and certain file types.
This feature is commonly used for functionality such as previewing or editing files.
Running the example
-
Run the following inside
examples/file-associations/src-tauricargo build --features tauri/protocol-asset
Associations
This example creates associations with PNG, JPG, JPEG and GIF files.
Additionally, it defines two new extensions - taurid (derives from a raw data file) and taurijson (derives from JSON). They have special treatment on macOS (see exportedType in src-tauri/tauri.conf.json).