#!/bin/bash

## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

set -o errexit
set -o nounset
set -o errtrace
set -o pipefail

SCRIPTNAME="$(basename -- "${BASH_SOURCE[0]}")"
export SCRIPTNAME

export ICON="/usr/share/icons/icon-pack-dist/tbupdate.ico"

export IDENTIFIER="mullvadbrowser-downloader"
export tb_install_folder="mullvadbrowser"
export tb_install_folder_dot=".mullvadbrowser"
export tb_title="Mullvad Browser"
export tb_wiki="Mullvad_Browser"
export tb_browser_name="mullvad-browser"
export tb_browser_download_name="mullvad-browser"
export tb_settings_folder="mullvadbrowser.d"
export tb_bin="mullvadbrowser"
export TBB_REMOTE_FOLDER="https://dist.torproject.org/mullvadbrowser"
export tbb_versions_base_folder="browser/update_responses/update_1"
export tbb_versions_base_url="https://cdn.mullvad.net"
export tb_process_name="mullvadbrowser.real"
export tb_local_version_filename="version.json"
export tb_downloader_developers="Kicksecure"
export tb_documentation_base_url_clearnet="https://www.kicksecure.com"
export tb_wiki="Mullvad_Browser"
export tb_global_binary_dir='/var/cache/mullvadbrowser-binary'

update-torbrowser "$@"
