# Download URL for a specific RV version

**URL:** <https://community.shotgridsoftware.com/t/download-url-for-a-specific-rv-version/16392>\
**Category:** RV\
**Created:** [November 29, 2022, 6:06pm UTC](https://community.shotgridsoftware.com/t/download-url-for-a-specific-rv-version/16392 "2022-11-29T18:06:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dietmar.kreider](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dietmar.kreider](https://community.shotgridsoftware.com/u/dietmar.kreider)\
**Post date:** [November 29, 2022, 6:06pm UTC](https://community.shotgridsoftware.com/t/download-url-for-a-specific-rv-version/16392/1 "2022-11-29T18:06:45Z")

</div>

Hi, community!  
Is there any way to get a download URL for a specific RV version? For Example I want to have the “2021.0.1” Version  
Downloading the “Current” or “Previous” version is not the way I want to deploy this software 😕

---

<div class="post-metadata">

**Author:** ![dietmar.kreider](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dietmar.kreider](https://community.shotgridsoftware.com/u/dietmar.kreider)\
**Post date:** [November 29, 2022, 7:49pm UTC](https://community.shotgridsoftware.com/t/download-url-for-a-specific-rv-version/16392/2 "2022-11-29T19:49:51Z")

</div>

Ok, after looong trial and error I’ve found few URLs, which work for me. Huge help was [this thread](https://community.shotgridsoftware.com/t/consistent-url-for-downloading-all-versions/12130).

There are actually 2 URLS - one for the current releases, and one for previous ones. As far as I can understand - 2022 == current, 2021 == previous. Here are my URLs (for windows):

- [https://sg-software.ems.autodesk.com/deploy/rv/Previous\_Release/rv-win64-x86-64-{version}.zip](https://sg-software.ems.autodesk.com/deploy/rv/Previous_Release/rv-win64-x86-64-%7Bversion%7D.zip)
- [https://sg-software.ems.autodesk.com/deploy/rv/Current\_Release/rv-win64-x86-64-{version}.zip](https://sg-software.ems.autodesk.com/deploy/rv/Current_Release/rv-win64-x86-64-%7Bversion%7D.zip)

I hope it this could help someone 😃

---

<div class="post-metadata">

**Author:** ![dietmar.kreider](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dietmar.kreider](https://community.shotgridsoftware.com/u/dietmar.kreider)\
**Post date:** [November 29, 2022, 7:57pm UTC](https://community.shotgridsoftware.com/t/download-url-for-a-specific-rv-version/16392/3 "2022-11-29T19:57:11Z")

</div>

In case there are another nerds trying to deploy RV via [REZ](https://github.com/AcademySoftwareFoundation/rez) here is my rezbuild python3 script which downloads and extracts the archive (as mentioned above - it’s for Windows folks 🙂):

```python
import ssl
import urllib.request

import shutil
import sys

from os import environ
from os.path import join
from zipfile import ZipFile

def build(source_path, build_path, install_path, targets):
    # Package version
    _version = environ["REZ_BUILD_PROJECT_VERSION"]

    # Download URL
    src_url = f'https://sg-software.ems.autodesk.com/deploy/rv/' \
              f'Current_Release/rv-win64-x86-64-{_version}.zip'

    # Download target zip file
    src_zip = join(build_path, 'src.zip')

    # Extracted folder
    zip_extracted = join(build_path, f'rv-win64-x86-64-{_version}')

    # Workaround to ensure downloading via HTTPS
    ssl._create_default_https_context = ssl._create_unverified_context

    # Download source file
    print(f'[+] Downloading: {src_url}')
    urllib.request.urlretrieve(src_url, src_zip)

    # Extract files
    with ZipFile(src_zip, 'r') as archive:
        print(f'[+] Extracting: {src_zip}')
        archive.extractall(build_path)

    if 'install' in targets:
        # Copy source
        print(f'[+] Copy source files from: {zip_extracted}')
        shutil.copytree(zip_extracted, join(install_path, 'src'))

if __name__ == ' __main__':
    build(source_path=environ['REZ_BUILD_SOURCE_PATH'],
          build_path=environ['REZ_BUILD_PATH'],
          install_path=environ['REZ_BUILD_INSTALL_PATH'],
          targets=sys.argv[1:])

```

---

<div class="post-metadata">

**Author:** ![panisset](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@panisset](https://community.shotgridsoftware.com/u/panisset)\
**Post date:** [December 4, 2022, 10:59pm UTC](https://community.shotgridsoftware.com/t/download-url-for-a-specific-rv-version/16392/4 "2022-12-04T22:59:00Z")

</div>

Looks like the base URLs have changed, they used to be:

[https://sg-shotgunsoftware.s3-accelerate.amazonaws.com/deploy/rv/Current\_Release/](https://sg-shotgunsoftware.s3-accelerate.amazonaws.com/deploy/rv/Current_Release/)  
[https://sg-shotgunsoftware.s3-accelerate.amazonaws.com/deploy/rv/Previous\_Release/](https://sg-shotgunsoftware.s3-accelerate.amazonaws.com/deploy/rv/Previous_Release/)

which apparently still work, but the URLs under the [autodesk.com](http://autodesk.com) domain seem potentially more robust.

I still wish:

- there wasn’t an arbitrary distinction between Current\_Release and Previous\_Release exposed in the download path, which requires additional logic in a download script to figure out (reliably?) the path to use to download a specific release
- there was a way to programmatically figure out the latest release / available releases that doesn’t involve screen scraping the downloads page at [ShotGrid | RV Download](https://www.shotgridsoftware.com/rv/download/)
- there was an RSS feed announcing all M&E product releases to trigger auto download of new versions

Thanks!  
JF

---

<div class="post-metadata">

**Author:** ![dietmar.kreider](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dietmar.kreider](https://community.shotgridsoftware.com/u/dietmar.kreider)\
**Post date:** [December 6, 2022, 11:08am UTC](https://community.shotgridsoftware.com/t/download-url-for-a-specific-rv-version/16392/5 "2022-12-06T11:08:52Z")

</div>

I think this cryptic download URLs are on purpose. As many things at Autodesk - to make our lifes horrible 😃 There is nothing else which would explain those URLs in my opinion 😃
