feat: Update product name format to include version in Wix configuration
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions

This commit is contained in:
claudi 2026-03-12 11:06:53 +01:00
parent 8e07e7e855
commit 5cb3bf9f76
3 changed files with 2 additions and 15 deletions

View file

@ -1,14 +0,0 @@
import asyncio
from pathlib import Path
from webdrop_bridge.core.updater import UpdateManager
async def main():
manager = UpdateManager(current_version='0.8.3', config_dir=Path('.tmp-update-check'))
release = await manager.check_for_updates()
print('release:', None if not release else (release.tag_name, release.version, len(release.assets)))
if release:
installer, checksum = await manager._resolve_release_assets(release)
print('installer:', None if not installer else installer.get('name'))
print('checksum:', None if not checksum else checksum.get('name'))
asyncio.run(main())

View file

@ -2,7 +2,7 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:ui="http://schemas.microsoft.com/wix/2010/ui"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*" Name="{product_name}" Language="1033" Version="{version}"
<Product Id="*" Name="{product_name_with_version}" Language="1033" Version="{version}"
Manufacturer="{manufacturer}"
UpgradeCode="{upgrade_code}">

View file

@ -455,6 +455,7 @@ class WindowsBuilder:
wix_template = self.wix_template.read_text(encoding="utf-8")
wix_content = wix_template.format(
product_name=self.brand.display_name,
product_name_with_version=f"{self.brand.display_name} v{self.version}",
version=self.version,
manufacturer=self.brand.manufacturer,
upgrade_code=self.brand.msi_upgrade_code,