Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.gitlab/ci/build-inside-vm.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/ci/build-inside-vm.sh')
-rwxr-xr-x.gitlab/ci/build-inside-vm.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab/ci/build-inside-vm.sh b/.gitlab/ci/build-inside-vm.sh
index dbaadea..151cc13 100755
--- a/.gitlab/ci/build-inside-vm.sh
+++ b/.gitlab/ci/build-inside-vm.sh
@@ -26,12 +26,22 @@ create_checksums() {
fi
}
+create_zsync_delta() {
+ # create a zsync control file for a file
+ # $1: a file
+ zsyncmake -C -u "${1##*/}" -o "${1}".zsync "${1}"
+ if [ -n "${SUDO_UID:-}" ]; then
+ chown "${SUDO_UID}:${SUDO_GID}" "${1}".zsync
+ fi
+}
+
run_mkarchiso() {
# run mkarchiso
# $1: template name
mkdir -p "${output}/${1}" "${tmpdir}/${1}"
./archiso/mkarchiso -o "${output}/${1}" -w "${tmpdir}/${1}" -v "configs/${1}"
create_checksums "${output}/${1}/"*.iso
+ create_zsync_delta "${output}/${1}/"*.iso
}
trap cleanup EXIT