|
11 | 11 | from scripts.ci.lib.nightly_version import NIGHTLY_CANONICAL_FORMAT, NIGHTLY_VERSION_RE |
12 | 12 | from scripts.ci.lib.release_artifacts import ( |
13 | 13 | ARTIFACT_EXTENSIONS, |
14 | | - LINUX_APPIMAGE_UPDATER_PATTERNS, |
15 | 14 | MACOS_UPDATER_ARCHIVE_EXTENSION, |
16 | 15 | MACOS_UPDATER_ARCHIVE_PATTERNS, |
17 | 16 | MACOS_UPDATER_SIGNATURE_EXTENSION, |
@@ -59,15 +58,6 @@ def platform_key_for_macos(arch: str) -> str: |
59 | 58 | raise ValueError(f"Unsupported macOS arch: {arch}") |
60 | 59 |
|
61 | 60 |
|
62 | | -def platform_key_for_linux_appimage(arch: str) -> str: |
63 | | - arch = normalize_arch(arch) |
64 | | - if arch == "amd64": |
65 | | - return "linux-x86_64-appimage" |
66 | | - if arch == "arm64": |
67 | | - return "linux-aarch64-appimage" |
68 | | - raise ValueError(f"Unsupported Linux AppImage arch: {arch}") |
69 | | - |
70 | | - |
71 | 61 | def derive_release_metadata(version: str, channel: str | None) -> tuple[str, str, str]: |
72 | 62 | inferred_channel = "nightly" if "nightly" in version.lower() else "stable" |
73 | 63 | effective_channel = channel or inferred_channel |
@@ -111,14 +101,6 @@ def canonical_macos_filename( |
111 | 101 | return f"{name}_{base_version}_macos_{arch}{nightly_suffix}{MACOS_UPDATER_ARCHIVE_EXTENSION}" |
112 | 102 |
|
113 | 103 |
|
114 | | -def canonical_linux_appimage_filename( |
115 | | - name: str, arch: str, version: str, channel: str |
116 | | -) -> str: |
117 | | - _, base_version, nightly_suffix = derive_release_metadata(version, channel) |
118 | | - arch = normalize_arch(arch) |
119 | | - return f"{name}_{base_version}_linux_{arch}{nightly_suffix}.AppImage" |
120 | | - |
121 | | - |
122 | 104 | def parse_windows_artifact_name(source_name: str) -> re.Match[str]: |
123 | 105 | match = match_any(source_name, WINDOWS_UPDATER_PATTERNS) |
124 | 106 | if match: |
@@ -147,19 +129,6 @@ def parse_macos_artifact_name(source_name: str) -> re.Match[str]: |
147 | 129 | return match |
148 | 130 |
|
149 | 131 |
|
150 | | -def parse_linux_appimage_artifact_name(source_name: str) -> re.Match[str]: |
151 | | - match = match_any(source_name, LINUX_APPIMAGE_UPDATER_PATTERNS) |
152 | | - if match: |
153 | | - return match |
154 | | - raise ValueError( |
155 | | - "Unexpected Linux AppImage artifact name: " |
156 | | - f"{source_name}. Expected format: " |
157 | | - "<name>_<version>_linux_<arch>.AppImage or legacy " |
158 | | - "<name>_<version>_<arch>.AppImage " |
159 | | - "(nightly builds may append _nightly_<sha> before .AppImage)." |
160 | | - ) |
161 | | - |
162 | | - |
163 | 132 | def add_platform( |
164 | 133 | platforms: dict[str, dict[str, str]], |
165 | 134 | platform_key: str, |
@@ -241,26 +210,6 @@ def collect_platforms( |
241 | 210 | ) |
242 | 211 | continue |
243 | 212 |
|
244 | | - if sig_name.endswith(".AppImage.sig"): |
245 | | - source_name = sig_name[:-4] |
246 | | - match = parse_linux_appimage_artifact_name(source_name) |
247 | | - artifact_name = canonical_linux_appimage_filename( |
248 | | - match.group("name"), |
249 | | - match.group("arch"), |
250 | | - version, |
251 | | - channel, |
252 | | - ) |
253 | | - add_platform( |
254 | | - platforms, |
255 | | - platform_key_for_linux_appimage(match.group("arch")), |
256 | | - "Linux AppImage", |
257 | | - artifact_name, |
258 | | - sig_path, |
259 | | - repo, |
260 | | - tag, |
261 | | - ) |
262 | | - continue |
263 | | - |
264 | 213 | unsupported_signature_files.append(sig_name) |
265 | 214 |
|
266 | 215 | if unsupported_signature_files: |
|
0 commit comments