pub fn read_from(
target: Target,
root_dir: PathBuf,
) -> Result<(Value, Option<PathBuf>), ConfigError>
Expand description
Reads the configuration from the given root directory.
It first looks for a tauri.conf.json[5]
or Tauri.toml
file on the given directory. The file must exist.
Then it looks for a platform-specific configuration file:
tauri.macos.conf.json[5]
orTauri.macos.toml
on macOStauri.linux.conf.json[5]
orTauri.linux.toml
on Linuxtauri.windows.conf.json[5]
orTauri.windows.toml
on Windowstauri.android.conf.json[5]
orTauri.android.toml
on Androidtauri.ios.conf.json[5]
orTauri.ios.toml
on iOS Merging the configurations using JSON Merge Patch (RFC 7396).
Returns the raw configuration and the platform config path, if any.