Przeglądaj źródła

revert: revert #10969, consistent product_code (#11182)

closes #11178
Amr Bashir 10 miesięcy temu
rodzic
commit
e10fdb786c

+ 5 - 0
.changes/revert-10969-consistent-update-code.md

@@ -0,0 +1,5 @@
+---
+"tauri-bundler": patch:bug
+---
+
+Revert recent change that generated MSI installers with the same product code which prevented updates to happen, it is now ranomized like it previously was.

+ 1 - 1
crates/tauri-bundler/src/bundle/windows/msi/main.wxs

@@ -13,7 +13,7 @@
 
 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
     <Product
-            Id="{{product_code}}"
+            Id="*"
             Name="{{product_name}}"
             UpgradeCode="{{upgrade_code}}"
             Language="!(loc.TauriLanguage)"

+ 0 - 7
crates/tauri-bundler/src/bundle/windows/msi/mod.rs

@@ -562,13 +562,6 @@ pub fn build_wix_app_installer(
       )
     });
   data.insert("upgrade_code", to_json(upgrade_code.to_string()));
-
-  let product_code = Uuid::new_v5(
-    &Uuid::NAMESPACE_DNS,
-    settings.bundle_identifier().as_bytes(),
-  )
-  .to_string();
-  data.insert("product_code", to_json(product_code.as_str()));
   data.insert(
     "allow_downgrades",
     to_json(settings.windows().allow_downgrades),