mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
fix: msi, custom client, license (#7834)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
9d3c823603
commit
2b3f87d6f2
@ -16,7 +16,7 @@
|
||||
<Icon Id="AppIcon" SourceFile="Resources\icon.ico" />
|
||||
|
||||
<!-- User Interface -->
|
||||
<WixVariable Id="WixUILicenseRtf" Value="RustDesk License.rtf" />
|
||||
<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
|
||||
|
||||
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" />
|
||||
<UIRef Id="WixUI_ErrorProgressText" />
|
||||
|
@ -437,6 +437,19 @@ def init_global_vars(dist_dir, app_name, args):
|
||||
return True
|
||||
|
||||
|
||||
def update_license_file(app_name):
|
||||
if app_name == "RustDesk":
|
||||
return
|
||||
license_file = Path(sys.argv[0]).parent.joinpath("Package/License.rtf")
|
||||
with open(license_file, "r") as f:
|
||||
license_content = f.read()
|
||||
license_content = license_content.replace("website rustdesk.com and other ", "")
|
||||
license_content = license_content.replace("RustDesk", app_name)
|
||||
license_content = re.sub("Purslane Ltd", app_name, license_content, flags=re.IGNORECASE)
|
||||
with open(license_file, "w") as f:
|
||||
f.write(license_content)
|
||||
|
||||
|
||||
def replace_component_guids_in_wxs():
|
||||
langs_dir = Path(sys.argv[0]).parent.joinpath("Package")
|
||||
for file_path in langs_dir.glob("**/*.wxs"):
|
||||
@ -466,6 +479,8 @@ if __name__ == "__main__":
|
||||
if not init_global_vars(dist_dir, app_name, args):
|
||||
sys.exit(-1)
|
||||
|
||||
update_license_file(app_name)
|
||||
|
||||
if not gen_pre_vars(args, dist_dir):
|
||||
sys.exit(-1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user