Skip to content

Commit 2af3a81

Browse files
committed
Handling .torrent file differently, since the URL was invalid
1 parent a6ab03d commit 2af3a81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

installer/deploy.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@
241241
upload(sha256sum_instructions_path, github_release)
242242

243243
# Create torrent and upload
244-
torrent_path = "%s.torrent" % artifact_path
245-
torrent_command = 'mktorrent -a "udp://tracker.openbittorrent.com:80/announce, udp://tracker.publicbt.com:80/announce, udp://tracker.opentrackr.org:1337" -c "OpenShot Video Editor %s" -w "%s" -o "%s" "%s"' % (github_release.tag_name, download_url, "%s.torrent" % artifact_name, artifact_name)
244+
torrent_name = "%s.torrent" % artifact_name
245+
torrent_path = os.path.join(artifact_dir, torrent_name)
246+
torrent_command = 'mktorrent -a "udp://tracker.openbittorrent.com:80/announce, udp://tracker.publicbt.com:80/announce, udp://tracker.opentrackr.org:1337" -c "OpenShot Video Editor %s" -w "%s" -o "%s" "%s"' % (github_release.tag_name, download_url, torrent_name, artifact_dir)
246247
torrent_output = ""
247248
for line in run_command(torrent_command, artifact_dir):
248249
output(line)

0 commit comments

Comments
 (0)