|
169 | 169 | # NOTE: ONLY for `openshot-qt` repo
|
170 | 170 | # github_release_url = github_release.html_url
|
171 | 171 | github_release = releases.get('openshot-qt')
|
172 |
| - for artifact_orig_name in os.listdir(artifact_dir): |
| 172 | + for artifact_orig_name in os.listdir(artifact_dir).copy(): |
| 173 | + print("--- %s" % artifact_orig_name) |
173 | 174 | artifact_path_orig = os.path.join(artifact_dir, artifact_orig_name)
|
174 | 175 | match = RELEASE_NAME_REGEX.match(artifact_orig_name)
|
175 | 176 | if match and match.groups():
|
|
184 | 185 | artifact_path = artifact_path_orig
|
185 | 186 | artifact_base, artifact_ext = os.path.splitext(artifact_name)
|
186 | 187 |
|
187 |
| - if artifact_ext == '.torrent': |
| 188 | + if artifact_ext in ['.torrent', '.verify', '.sha256sum']: |
188 | 189 | # Delete torrent and continue (we'll recreate the torrents below when needed)
|
189 | 190 | # The artifact torrents have the incorrect URL inside them
|
190 | 191 | os.unlink(artifact_path)
|
191 | 192 | continue
|
192 | 193 |
|
193 |
| - if os.path.exists(artifact_path) and artifact_ext in ['.exe', '.dmg', '.AppImage', |
194 |
| - '.verify', '.sha256sum']: |
| 194 | + if os.path.exists(artifact_path) and artifact_ext in ['.exe', '.dmg', '.AppImage']: |
195 | 195 | # Valid artifact/installer - Upload to GitHub Release
|
196 | 196 | output("GitHub: Uploading %s to GitHub Release: %s" % (artifact_path, github_release.tag_name))
|
197 | 197 | download_url = upload(artifact_path, github_release)
|
|
0 commit comments