updated build system

This commit is contained in:
2024-07-25 06:37:36 -05:00
parent 9650d3f56b
commit 2a98e44a5c
2 changed files with 19 additions and 22 deletions

View File

@@ -90,18 +90,3 @@ ln -sf "${PROJECT_BUILD_DIR}/build/compile_commands.json" "${SOURCE_DIR}/compile
if [ -f "${SOURCE_DIR}/post_build.sh" ]; then
"${SOURCE_DIR}/post_build.sh"
fi
pushd "${PROJECT_DIST_DIR}"
IFS=$'\n'
set -f
FILE_LIST=$(find . -type f)
for FILE in ${FILE_LIST}; do
sha256sum ${FILE} >${FILE}.sha256
if [ "${PROJECT_PRIVATE_KEY}" != "" ]; then
openssl dgst -sha256 -sign "${PROJECT_PRIVATE_KEY}" -out "${FILE}.sig" "${FILE}"
openssl dgst -sha256 -verify "${PROJECT_PUBLIC_KEY}" -signature "${FILE}.sig" "${FILE}" || exit 1
fi
done
unset IFS
set +f
popd