|
98 | 98 | # Special handling for: |
99 | 99 | # - composer: uses .phar files |
100 | 100 | # - xlight: version in release name |
| 101 | + # - mailpit: version in release name (files named mailpit-windows-amd64.zip) |
101 | 102 | # - git: files start with "portable" |
102 | 103 | # - nodejs: files start with "node-" instead of "nodejs" |
103 | 104 | # - ghostscript: version embedded without dots (e.g., gs10051w64.7z for version 10.05.1) |
@@ -145,6 +146,22 @@ jobs: |
145 | 146 | print(f"ERROR: Could not extract version for xlight from release name") |
146 | 147 | print(f"Release name: {release_data.get('name', 'N/A')}") |
147 | 148 | exit(1) |
| 149 | + elif module_name == 'mailpit': |
| 150 | + # For mailpit, look for mailpit-windows-amd64.zip and use version from release name |
| 151 | + if filename == 'mailpit-windows-amd64.zip': |
| 152 | + download_url = asset['browser_download_url'] |
| 153 | + if release_name_version: |
| 154 | + ver = release_name_version |
| 155 | + assets.append({ |
| 156 | + 'version': ver, |
| 157 | + 'url': download_url, |
| 158 | + 'filename': filename |
| 159 | + }) |
| 160 | + print(f"Found: {filename} -> Version: {ver}") |
| 161 | + else: |
| 162 | + print(f"ERROR: Could not extract version for mailpit from release name") |
| 163 | + print(f"Release name: {release_data.get('name', 'N/A')}") |
| 164 | + exit(1) |
148 | 165 | elif module_name == 'git': |
149 | 166 | # For git, files start with "portable" instead of "git" |
150 | 167 | # Accept files with .7z, .exe, .zip extensions (including double extensions like .7z.exe) |
@@ -320,6 +337,9 @@ jobs: |
320 | 337 | elif module_name == 'xlight': |
321 | 338 | print(f"No xlight-x64.zip asset found in release") |
322 | 339 | print(f"Available assets: {[a['name'] for a in release_data.get('assets', [])]}") |
| 340 | + elif module_name == 'mailpit': |
| 341 | + print(f"No mailpit-windows-amd64.zip asset found in release") |
| 342 | + print(f"Available assets: {[a['name'] for a in release_data.get('assets', [])]}") |
323 | 343 | elif module_name == 'git': |
324 | 344 | print(f"No valid assets found in release") |
325 | 345 | print(f"Expected: .7z, .exe, or .zip files starting with 'portable'") |
|
0 commit comments