Skip to content

Commit

Permalink
Merge branch 'make-buildserver-uplaod-exe-without-architechture-suffi…
Browse files Browse the repository at this point in the history
…x-des-1274'
  • Loading branch information
raksooo committed Oct 2, 2024
2 parents d34c403 + 9baf797 commit 9e5b9c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/buildserver-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function build_ref {
# Pipes all matching names and their new name to mv
pushd "$artifact_dir"
for original_file in MullvadVPN-*-dev-*{.deb,.rpm,.exe,.pkg}; do
new_file=$(echo "$original_file" | sed -nE "s/^(MullvadVPN-.*-dev-.*)(_amd64\.deb|_x86_64\.rpm|_arm64\.deb|_aarch64\.rpm|_x64\.exe|_arm64\.exe|\.pkg)$/\1$version_suffix\2/p")
new_file=$(echo "$original_file" | perl -pe "s/^(MullvadVPN-.*?)(_arm64|_aarch64|_amd64|_x86_64)?(\.deb|\.rpm|\.exe|\.pkg)$/\1$version_suffix\2\3/p")
mv "$original_file" "$new_file"
done
popd
Expand Down
9 changes: 8 additions & 1 deletion gui/tasks/distribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const config = {
arch: getWindowsTargetArch(),
},
],
artifactName: 'MullvadVPN-${version}_${arch}.${ext}',
artifactName: getWindowsArtifactName(),
publisherName: 'Mullvad VPN AB',
extraResources: [
{ from: distAssets(path.join(getWindowsDistSubdir(), 'mullvad.exe')), to: '.' },
Expand Down Expand Up @@ -464,6 +464,13 @@ function getWindowsTargetArch() {
return 'x64';
}

function getWindowsArtifactName() {
if (targets === 'aarch64-pc-windows-msvc') {
return 'MullvadVPN-${version}_${arch}.${ext}';
}
return 'MullvadVPN-${version}.${ext}';
}

function getWindowsTargetSubdir() {
if (targets && process.platform === 'win32') {
if (targets === 'aarch64-pc-windows-msvc') {
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/test-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function get_app_filename {
echo "MullvadVPN-${version}_x86_64.rpm"
;;
windows*)
echo "MullvadVPN-${version}_x64.exe"
echo "MullvadVPN-${version}.exe"
;;
macos*)
echo "MullvadVPN-${version}.pkg"
Expand Down

0 comments on commit 9e5b9c3

Please sign in to comment.