{% extends "layouts/base.html" %} {% block title %} Download {{ release.project.display_name }} {{ release.version }} ~ ATR {% endblock title %} {% block description %} Download commands for {{ release.project.display_name }} {{ release.version }}. {% endblock description %} {% block content %} {% set phase = release.phase.value %}
← Back to {{ phase|replace('_', ' ') |title }} {% if phase != "release" %} {% if phase == "release_candidate_draft" %} ① COMPOSE → ② → ③ {% elif phase == "release_candidate" %} ① → ② VOTE → ③ {% elif phase == "release_preview" %} ① → ② → ③ FINISH {% endif %} {% endif %}
{% set file_count, total_bytes, formatted_size = get_release_stats(release) %}
This release consists of
{% if file_count == 1 %}
{{ file_count }} file
{% else %}
{{ file_count }} files
{% endif %}
with a total size of {{ formatted_size }}.
Download a single ZIP archive containing all files for this release below. The archive is generated on the fly, which may take a while for very large releases.
Download {{ release.name }}.zip
If you prefer, you can download the files using other methods.
You can download the files one by one using your browser from the download folder. Clicking a link to any file will download it, as it is served as application/octet-stream.
You can download all of the files in this release using curl with the following command:
curl{% if server_domain.startswith("127.0.0.1") %} --insecure{% endif %} -fsS https://{{ server_domain }}{{ as_url(routes.download.sh_selected, project_name=release.project.name, version_name=release.version) }} |{% if server_domain.startswith("127.0.0.1") %} CURL_EXTRA=--insecure{% endif %} sh
This downloads the files into the current directory. Ensure that you create a new empty directory, and change to it, before running the command. The script requires curl and a POSIX compliant version of sh. It works by downloading a POSIX complaint shell script straight into your shell. You can of course download the script and audit it before running it.
You can download all of the files in this release using rsync with the following command:
rsync -av -e 'ssh -p 2222' {{ asf_id }}@{{ server_domain }}:/{{ release.project.name }}/{{ release.version }}/ ${DOWNLOAD_PATH}/
{% include "user-ssh-keys.html" %}
You can download all of the files in this release using wget with the following command:
wget -r -np -nH --cut-dirs=4 --default-page=.index.html{% if server_domain.startswith("127.0.0.1") %} --no-check-certificate{% endif %} https://{{ server_domain }}{{ as_url(routes.download.path_empty, project_name=release.project.name, version_name=release.version) }}
This downloads the files into the current directory. Ensure that you create a new empty directory, and change to it, before running the command.
{% endblock content %} {% block stylesheets %} {{ super() }} {% endblock stylesheets %} {% block javascripts %} {{ super() }} {% endblock javascripts %}