mirror of https://github.com/zulip/zulip.git
github: Update macOS dmg filename pattern.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
1f497bf8c8
commit
f9430674d2
|
@ -28,7 +28,7 @@ def verify_release_download_link(link: str) -> bool:
|
|||
|
||||
PLATFORM_TO_SETUP_FILE = {
|
||||
"linux": "Zulip-{version}-x86_64.AppImage",
|
||||
"mac": "Zulip-{version}.dmg",
|
||||
"mac": "Zulip-{version}-x64.dmg",
|
||||
"mac-arm64": "Zulip-{version}-arm64.dmg",
|
||||
"windows": "Zulip-Web-Setup-{version}.exe",
|
||||
}
|
||||
|
|
|
@ -40,12 +40,12 @@ class GitHubTestCase(ZulipTestCase):
|
|||
|
||||
responses.add(
|
||||
responses.HEAD,
|
||||
"https://github.com/zulip/zulip-desktop/releases/download/v5.4.3/Zulip-5.4.3.dmg",
|
||||
"https://github.com/zulip/zulip-desktop/releases/download/v5.4.3/Zulip-5.4.3-x64.dmg",
|
||||
status=302,
|
||||
)
|
||||
self.assertEqual(
|
||||
get_latest_github_release_download_link_for_platform("mac"),
|
||||
"https://github.com/zulip/zulip-desktop/releases/download/v5.4.3/Zulip-5.4.3.dmg",
|
||||
"https://github.com/zulip/zulip-desktop/releases/download/v5.4.3/Zulip-5.4.3-x64.dmg",
|
||||
)
|
||||
|
||||
api_url = "https://api.github.com/repos/zulip/zulip-desktop/releases/latest"
|
||||
|
|
Loading…
Reference in New Issue