Pārlūkot izejas kodu

fix(bundler/nsis): fix installer incorrect copyright info (#7386)

Signed-off-by: luofei <luoffei@outlook.com>
luofei 2 gadi atpakaļ
vecāks
revīzija
eba8e1315e

+ 5 - 0
.changes/fix-nsis-legal-copyright.md

@@ -0,0 +1,5 @@
+---
+'tauri-bundler': 'patch:bug'
+---
+
+On Windows, fix installation packages not showing correct copyright information.

+ 2 - 1
tooling/bundler/src/bundle/windows/templates/installer.nsi

@@ -22,6 +22,7 @@ ${StrLoc}
 !define MAINBINARYNAME "{{main_binary_name}}"
 !define MAINBINARYSRCPATH "{{main_binary_path}}"
 !define BUNDLEID "{{bundle_id}}"
+!define COPYRIGHT "{{copyright}}"
 !define OUTFILE "{{out_file}}"
 !define ARCH "{{arch}}"
 !define PLUGINSPATH "{{additional_plugins_path}}"
@@ -35,7 +36,7 @@ ${StrLoc}
 !define MANUPRODUCTKEY "Software\${MANUFACTURER}\${PRODUCTNAME}"
 
 Name "${PRODUCTNAME}"
-BrandingText "{{copyright}}"
+BrandingText "${COPYRIGHT}"
 OutFile "${OUTFILE}"
 
 VIProductVersion "${VERSIONWITHBUILD}"