feat(update): add setup fallback action and bump 2.1.2
- add installer asset detection in update service - add 'Download and install (setup)' action in update dialog - bump app version to 2.1.2 and extend update service test
This commit is contained in:
@@ -33,6 +33,7 @@ class UpdateServiceTests(unittest.TestCase):
|
||||
"assets": [
|
||||
{"name": "notes.txt", "browser_download_url": "https://example.com/notes.txt"},
|
||||
{"name": "AnabasisManager-win64.zip", "browser_download_url": "https://example.com/app.zip"},
|
||||
{"name": "AnabasisManager-setup-1.7.2.exe", "browser_download_url": "https://example.com/setup.exe"},
|
||||
{"name": "AnabasisManager-win64.zip.sha256", "browser_download_url": "https://example.com/app.zip.sha256"},
|
||||
],
|
||||
}
|
||||
@@ -43,6 +44,7 @@ class UpdateServiceTests(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(payload["latest_version"], "1.7.2")
|
||||
self.assertEqual(payload["download_url"], "https://example.com/app.zip")
|
||||
self.assertEqual(payload["installer_url"], "https://example.com/setup.exe")
|
||||
self.assertEqual(payload["checksum_url"], "https://example.com/app.zip.sha256")
|
||||
self.assertTrue(payload["has_update"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user