Skip to content

Commit 270a911

Browse files
committed
Add _x86_64 to the browser installer files
1 parent 15ac310 commit 270a911

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

ci/mullvad-browser/download-mullvad-browser.sh

+12-5
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ function usage() {
1717
echo "This script downloads, verifies, and notifies about Mullvad browser packages."
1818
echo
1919
echo "Options:"
20-
echo " -h | --help Show this help message and exit."
20+
echo " -h | --help Show this help message and exit."
2121
exit 1
2222
}
2323

2424

2525
function main() {
26-
# mullvad-browser-stable.deb
27-
PACKAGE_FILENAME=$1
26+
local package_filename_base=$1
27+
local extension=$2
28+
PACKAGE_FILENAME="$package_filename_base.$extension"
29+
2830
PACKAGE_URL=https://cdn.mullvad.net/browser/$PACKAGE_FILENAME
2931
SIGNATURE_URL=$PACKAGE_URL.asc
3032

@@ -47,6 +49,11 @@ function main() {
4749
fi
4850
rm "$PACKAGE_FILENAME.asc"
4951

52+
# Hack to get the architecture into the filename
53+
local filename_with_arch="${package_filename_base}_x86_64.$extension"
54+
mv "$PACKAGE_FILENAME" "$filename_with_arch"
55+
PACKAGE_FILENAME="$filename_with_arch"
56+
5057
# Check if the deb package has changed since last time
5158
# Handle the bootstrap problem by checking if the "output file" even exists and just moving on if it doesn't
5259
if [[ -f "$WORKDIR/$PACKAGE_FILENAME" ]] && cmp "$PACKAGE_FILENAME" "$WORKDIR/$PACKAGE_FILENAME"; then
@@ -81,8 +88,8 @@ pushd "$TMP_DIR" > /dev/null
8188

8289
echo "[#] Configured releases are: ${BROWSER_RELEASES[*]}"
8390
for release in "${BROWSER_RELEASES[@]}"; do
84-
main "mullvad-browser-$release.deb"
85-
main "mullvad-browser-$release.rpm"
91+
main "mullvad-browser-$release" "deb"
92+
main "mullvad-browser-$release" "rpm"
8693
done
8794

8895
if [[ -z "$(ls -A "$TMP_DIR")" ]]; then

0 commit comments

Comments
 (0)