mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-07 13:16:32 +02:00
Stop deleting .qpkg.codesigning files in build-qpkg.sh and include them in the returned artifact list from buildQPKG. These files contain the last 32 characters of the base64-encoded CMS signature produced by QDK code signing. They are consumed by pkgserve to populate <signature> entries in the QNAP repository XML, matching the format used by myqnap.org and qnapclub.eu. Updates corp#33203 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
20 lines
444 B
Bash
Executable File
20 lines
444 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
# Clean up folders and files created during build.
|
|
function cleanup() {
|
|
rm -rf /Tailscale/$ARCH
|
|
rm -f /Tailscale/sed*
|
|
rm -f /Tailscale/qpkg.cfg
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
mkdir -p /Tailscale/$ARCH
|
|
cp /tailscaled /Tailscale/$ARCH/tailscaled
|
|
cp /tailscale /Tailscale/$ARCH/tailscale
|
|
|
|
sed "s/\$QPKG_VER/$TSTAG-$QNAPTAG/g" /Tailscale/qpkg.cfg.in >/Tailscale/qpkg.cfg
|
|
|
|
qbuild --root /Tailscale --build-arch $ARCH --build-dir /out
|