From ae0fe47c4c35fa87c77acf42af32ef3f0615cb08 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Mon, 5 Feb 2024 14:08:32 +0100 Subject: [PATCH] fix(core): Compile error when bundle.license is set (#8774) * fix(core): Compile error when bundle.license is set * wrong package --- .changes/fix-tauri-build-license-field.md | 5 +++++ core/tauri-utils/src/config.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-tauri-build-license-field.md diff --git a/.changes/fix-tauri-build-license-field.md b/.changes/fix-tauri-build-license-field.md new file mode 100644 index 000000000..48e9d4374 --- /dev/null +++ b/.changes/fix-tauri-build-license-field.md @@ -0,0 +1,5 @@ +--- +"tauri-utils": patch:bug +--- + +Fix compile error when `tauri.conf.json` had `bundle > license` set. diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index b88374085..452b54943 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -2300,7 +2300,7 @@ mod build { let long_description = quote!(None); let external_bin = opt_vec_lit(self.external_bin.as_ref(), str_lit); let windows = &self.windows; - let license = opt_lit(self.license.as_ref()); + let license = opt_str_lit(self.license.as_ref()); let license_file = opt_lit(self.license_file.as_ref().map(path_buf_lit).as_ref()); let linux = quote!(Default::default()); let macos = quote!(Default::default());