Skip to content

Commit 56f2040

Browse files
committed
Removed .app.zip from macOS installer_extensions — now only .dmg and .pkg
Removed PLATFORM_ASSET_KEYWORDS dict and _ARCHIVE_EXTENSIONS tuple entirely Removed Layer 2 matching from _check_assets() — no more .zip/.tar.gz/.7z keyword matching
1 parent 1550cc3 commit 56f2040

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

scripts/fetch_all_categories.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _is_blocked(repo: Dict) -> bool:
112112
},
113113
"macos": {
114114
"topics": ["macos", "osx", "mac", "swiftui"],
115-
"installer_extensions": [".dmg", ".pkg", ".app.zip"],
115+
"installer_extensions": [".dmg", ".pkg"],
116116
"score_keywords": {
117117
"high": ["macos", "swiftui", "appkit"],
118118
"medium": ["desktop", "swift", "cocoa"],
@@ -134,18 +134,6 @@ def _is_blocked(repo: Dict) -> bool:
134134
},
135135
}
136136

137-
# Keyword patterns in release asset filenames that indicate a platform build.
138-
# Matched against lowercased asset names for files ending in .zip / .tar.gz / .7z etc.
139-
# These catch cross-platform releases like "myapp-macos-arm64.zip" or "myapp-win-x64.zip"
140-
PLATFORM_ASSET_KEYWORDS = {
141-
"android": ["android"],
142-
"windows": ["win64", "win32", "windows", "-win-", "-win.", "win-x64", "win-arm64", "windows-x64"],
143-
"macos": ["macos", "darwin", "osx", "mac-x64", "mac-arm64", "mac-universal", "-mac-", "-mac."],
144-
"linux": ["linux", "linux-x64", "linux-arm64", "-linux-", "-linux."],
145-
}
146-
147-
# Generic archive extensions to check for platform keyword matching
148-
_ARCHIVE_EXTENSIONS = (".zip", ".tar.gz", ".tar.xz", ".tar.bz2", ".7z")
149137

150138
# ─── Data classes ──────────────────────────────────────────────────────────────
151139

@@ -394,16 +382,9 @@ def _check_assets(assets: List[Dict]):
394382
continue
395383
for asset in assets:
396384
name = asset.get("name", "").lower()
397-
# Match by dedicated installer extension (.exe, .dmg, .deb, etc.)
398385
if any(name.endswith(ext) for ext in cfg["installer_extensions"]):
399386
info.has_installers[platform] = True
400387
break
401-
# Match generic archives (.zip, .tar.gz) by platform keyword in name
402-
if any(name.endswith(ext) for ext in _ARCHIVE_EXTENSIONS):
403-
keywords = PLATFORM_ASSET_KEYWORDS.get(platform, [])
404-
if any(kw in name for kw in keywords):
405-
info.has_installers[platform] = True
406-
break
407388

408389
# Try /releases/latest first (one API call)
409390
data, err = await self.get(f"https://api.github.com/repos/{full_name}/releases/latest")

0 commit comments

Comments
 (0)