summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2023-09-28 16:34:50 +0200
committerLinus Färnstrand <linus@mullvad.net>2023-09-29 11:39:31 +0200
commit406bc40e87d97675b3fafdb4a520d6a44f258f1b (patch)
tree8ab8e1a8f0bccb7ec10d11e6ee4c1b02cf89d2ee
parentf9cdc9210498e3616572b1d9adf80dc85ab36356 (diff)
downloadmullvadvpn-406bc40e87d97675b3fafdb4a520d6a44f258f1b.tar.xz
mullvadvpn-406bc40e87d97675b3fafdb4a520d6a44f258f1b.zip
Sign deb and rpm artifacts in buildserver-build.sh
-rwxr-xr-xci/buildserver-build.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/ci/buildserver-build.sh b/ci/buildserver-build.sh
index 6d491bb56f..99453caac0 100755
--- a/ci/buildserver-build.sh
+++ b/ci/buildserver-build.sh
@@ -85,6 +85,18 @@ function run_in_build_env {
fi
}
+# Sign DEB+RPM on Linux
+function sign_linux_packages {
+ for installer_path in dist/MullvadVPN-*.deb; do
+ echo "Signing $installer_path"
+ dpkg-sig --sign builder "$installer_path"
+ done
+ for installer_path in dist/MullvadVPN-*.rpm; do
+ echo "Signing $installer_path"
+ rpm --addsign "$installer_path"
+ done
+}
+
# Builds the app and test artifacts and move them to the passed in `artifact_dir`.
# To cross compile pass in `target` as an environment variable
# to this function. Must also pass `artifact_dir` to show where to move the built artifacts.
@@ -94,6 +106,9 @@ function build {
local build_args=("${@}")
run_in_build_env TARGETS="$target" ./build.sh "${build_args[@]}" || return 1
+ if [[ "$(uname -s)" == "Linux" ]]; then
+ sign_linux_packages
+ fi
mv dist/*.{deb,rpm,exe,pkg} "$artifact_dir" || return 1
(run_in_build_env gui/scripts/build-test-executable.sh "$target" && \