diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2024-06-25 13:26:37 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2024-06-25 16:55:28 +0200 |
| commit | c13a42f45fd7918b5bfb8e012f0b3bf8939b39ad (patch) | |
| tree | a0a0212215792f4d82e46ba2bd46d88bedfd1ce6 /ci | |
| parent | 26066a20a7a98f5eb1a8ae8910bcccfa01e51323 (diff) | |
| download | mullvadvpn-c13a42f45fd7918b5bfb8e012f0b3bf8939b39ad.tar.xz mullvadvpn-c13a42f45fd7918b5bfb8e012f0b3bf8939b39ad.zip | |
Add _x86_64 to the browser installer files
Diffstat (limited to 'ci')
| -rwxr-xr-x | ci/mullvad-browser/download-mullvad-browser.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/ci/mullvad-browser/download-mullvad-browser.sh b/ci/mullvad-browser/download-mullvad-browser.sh index 01627b5e3a..5c09ac21cf 100755 --- a/ci/mullvad-browser/download-mullvad-browser.sh +++ b/ci/mullvad-browser/download-mullvad-browser.sh @@ -17,14 +17,16 @@ function usage() { echo "This script downloads, verifies, and notifies about Mullvad browser packages." echo echo "Options:" - echo " -h | --help Show this help message and exit." + echo " -h | --help Show this help message and exit." exit 1 } function main() { - # mullvad-browser-stable.deb - PACKAGE_FILENAME=$1 + local package_filename_base=$1 + local extension=$2 + PACKAGE_FILENAME="$package_filename_base.$extension" + PACKAGE_URL=https://cdn.mullvad.net/browser/$PACKAGE_FILENAME SIGNATURE_URL=$PACKAGE_URL.asc @@ -47,6 +49,11 @@ function main() { fi rm "$PACKAGE_FILENAME.asc" + # Hack to get the architecture into the filename + local filename_with_arch="${package_filename_base}_x86_64.$extension" + mv "$PACKAGE_FILENAME" "$filename_with_arch" + PACKAGE_FILENAME="$filename_with_arch" + # Check if the deb package has changed since last time # Handle the bootstrap problem by checking if the "output file" even exists and just moving on if it doesn't if [[ -f "$WORKDIR/$PACKAGE_FILENAME" ]] && cmp "$PACKAGE_FILENAME" "$WORKDIR/$PACKAGE_FILENAME"; then @@ -81,8 +88,8 @@ pushd "$TMP_DIR" > /dev/null echo "[#] Configured releases are: ${BROWSER_RELEASES[*]}" for release in "${BROWSER_RELEASES[@]}"; do - main "mullvad-browser-$release.deb" - main "mullvad-browser-$release.rpm" + main "mullvad-browser-$release" "deb" + main "mullvad-browser-$release" "rpm" done if [[ -z "$(ls -A "$TMP_DIR")" ]]; then |
