Skip to content

Commit

Permalink
guix: fix flatpak sha256sums.part
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Mar 19, 2024
1 parent 918aee1 commit 41aebef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contrib/flatpak/make_flatpak.sh
Expand Up @@ -101,4 +101,4 @@ mv "${DISTNAME}-flatpak.zip" /output
cd /output
rm feather

sha256sum "${DISTNAME}-flatpak.zip" > SHA256SUMS.part
sha256sum "${DISTNAME}-flatpak.zip" > "${LOGDIR}/SHA256SUMS.part"
4 changes: 0 additions & 4 deletions contrib/guix/guix-attest
Expand Up @@ -121,8 +121,6 @@ if (( ${#sha256sum_fragments[@]} )); then
for logdir in "${sha256sum_fragments[@]}"; do
echo " '$logdir'"
case "$logdir" in
"$LOGDIR_BASE"/*.pack/SHA256SUMS.part)
;;
"$LOGDIR_BASE"/*-codesigned/SHA256SUMS.part)
codesigned_fragments+=("$logdir")
;;
Expand All @@ -137,8 +135,6 @@ else
exit 1
fi

noncodesigned_fragments+=("$OUTDIR_BASE/x86_64-linux-gnu.pack/SHA256SUMS.part")

##############
## Attest ##
##############
Expand Down
2 changes: 2 additions & 0 deletions contrib/guix/guix-build
Expand Up @@ -471,6 +471,7 @@ EOF
--share="$PWD"=/feather \
--share="$PACK"=/pack \
--share="$(outdir_for_host "$host")"=/output \
--share="$LOGDIR_BASE"=/logdir-base \
--share="$FEATHER_BIN"=/feather-bin \
--keep-failed \
--fallback \
Expand All @@ -479,6 +480,7 @@ EOF
${ADDITIONAL_GUIX_COMMON_FLAGS} ${ADDITIONAL_GUIX_ENVIRONMENT_FLAGS} \
-- env DISTNAME="$DISTNAME" \
SOURCE_DATE_EPOCH="${COMMIT_TIMESTAMP:?unable to determine value}" \
LOGDIR="$(LOGDIR_BASE=/logdir-base && logdir_for_host "$host")" \
VERSION="$VERSION" \
bash -c "cd /feather && \
bash contrib/flatpak/make_flatpak.sh"
Expand Down

0 comments on commit 41aebef

Please sign in to comment.