feat: Enhance update manager to handle UTF-8 BOM and improve asset resolution logic
This commit is contained in:
parent
44124595d8
commit
093b196d0d
4 changed files with 46 additions and 2 deletions
14
.tmp_check_update.py
Normal file
14
.tmp_check_update.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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())
|
||||
Loading…
Add table
Add a link
Reference in a new issue