mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
06f344ebb4
Copied CICD scripts into the repository so that the community can make contributions to the build system. Wrote a brief description of the build and distribute process. Modified the CICD config to use the repo hosted scripts. [ci skip]
29 lines
617 B
Bash
29 lines
617 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
do_hash() {
|
|
HASH_NAME=$1
|
|
HASH_CMD=$2
|
|
echo "${HASH_NAME}:"
|
|
for f in $(find -type f); do
|
|
f=$(echo $f | cut -c3-) # remove ./ prefix
|
|
if [ "$f" = "Release" ]; then
|
|
continue
|
|
fi
|
|
echo " $(${HASH_CMD} ${f} | cut -d" " -f1) $(wc -c $f)"
|
|
done
|
|
}
|
|
|
|
cat << EOF
|
|
Origin: packages.veilid.net
|
|
Label: packages.veilid.net
|
|
Suite: stable
|
|
Codename: bullseye
|
|
Architectures: amd64 arm64
|
|
Components: main
|
|
Description: Official repository for Veilid binaries.
|
|
Date: $(date -Ru)
|
|
EOF
|
|
do_hash "MD5Sum" "md5sum"
|
|
do_hash "SHA1" "sha1sum"
|
|
do_hash "SHA256" "sha256sum" |