We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
config
package_info
1 parent 94dbc96 commit 70fc87aCopy full SHA for 70fc87a
2 files changed
.changes/config-package-info-getters.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Adds `config` and `package_info` getters to the `App` and `AppHandle` structs.
core/tauri/src/app.rs
@@ -216,6 +216,16 @@ macro_rules! shared_app_impl {
216
package_info: self.manager.package_info().clone(),
217
}
218
219
220
+ /// Gets the app's configuration, defined on the `tauri.conf.json` file.
221
+ pub fn config(&self) -> Arc<Config> {
222
+ self.manager.config()
223
+ }
224
225
+ /// Gets the app's package information.
226
+ pub fn package_info(&self) -> &PackageInfo {
227
+ self.manager.package_info()
228
229
230
};
231
0 commit comments