diff options
| author | David Lönnhager <david.l@mullvad.net> | 2025-07-16 13:02:34 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2025-07-29 10:05:12 +0200 |
| commit | e1195ad499eec83b6b00bab0e36ed3d2224930af (patch) | |
| tree | a94de38a379f72758b097fda8a44d00e0c9dcf85 | |
| parent | 4467d98ce03bc3057f68dc19ad17b71c44eb3501 (diff) | |
| download | mullvadvpn-e1195ad499eec83b6b00bab0e36ed3d2224930af.tar.xz mullvadvpn-e1195ad499eec83b6b00bab0e36ed3d2224930af.zip | |
Ignore checksums file in artifacts directory
| -rwxr-xr-x | ci/buildserver-build.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ci/buildserver-build.sh b/ci/buildserver-build.sh index b178e162a1..c4dc925a66 100755 --- a/ci/buildserver-build.sh +++ b/ci/buildserver-build.sh @@ -74,23 +74,26 @@ EOF } function upload { - version=$1 + local version=$1 + local files + local checksums_filename + checksums_filename="desktop+$(hostname)+$version.sha256" + rm -f "$checksums_filename" files=( * ) - checksums_path="desktop+$(hostname)+$version.sha256" - sha256sum "${files[@]}" > "$checksums_path" + sha256sum "${files[@]}" > "$checksums_filename" case "$(uname -s)" in # Linux is both the build and upload server. Just copy directly to target dir Linux*) - cp "${files[@]}" "$checksums_path" "$UPLOAD_DIR/" + cp "${files[@]}" "$checksums_filename" "$UPLOAD_DIR/" ;; # Other platforms need to transfer their artifacts to the Linux build machine. Darwin*|MINGW*|MSYS_NT*) for file in "${files[@]}"; do upload_sftp "$file" || return 1 done - upload_sftp "$checksums_path" || return 1 + upload_sftp "$checksums_filename" || return 1 ;; esac } |
