mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
guix: fix release archive permissions
thanks to MoneroArbo for submitting their built attestation, which lead to the discovery of this defect
This commit is contained in:
parent
8212d40ea3
commit
b462d04a59
2 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
export LC_ALL=C
|
||||
set -ex -o pipefail
|
||||
export TZ=UTC
|
||||
|
||||
APP_ID="org.featherwallet.Feather"
|
||||
|
||||
|
@ -17,7 +19,7 @@ mkdir build
|
|||
cd build
|
||||
|
||||
mkdir export
|
||||
cp -a /feather/contrib/flatpak/share export
|
||||
cp -r /feather/contrib/flatpak/share export
|
||||
rm -rf export/share/app-info
|
||||
|
||||
# Copy the metadata file
|
||||
|
@ -33,7 +35,7 @@ cp /feather/contrib/depends/x86_64-linux-gnu/bin/startup .
|
|||
cp /feather-bin feather
|
||||
|
||||
# Copy metadata
|
||||
cp -a /feather/contrib/flatpak/share .
|
||||
cp -r /feather/contrib/flatpak/share .
|
||||
touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" share/metainfo/${APP_ID}.metainfo.xml
|
||||
gzip -c share/metainfo/${APP_ID}.metainfo.xml > share/app-info/xmls/${APP_ID}.xml.gz
|
||||
|
||||
|
@ -83,10 +85,10 @@ ln -s "/${GUIX_PROFILE}/share/xml" share/xml
|
|||
# Setup profile symlink
|
||||
ln -s "/${GUIX_PROFILE}" profile
|
||||
|
||||
chmod -R 555 .
|
||||
|
||||
cd /tmp-output
|
||||
|
||||
chmod -R 755 .
|
||||
|
||||
find . -print0 \
|
||||
| xargs -0r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}"
|
||||
find . \
|
||||
|
|
|
@ -234,7 +234,11 @@ GIT_ARCHIVE="${DIST_ARCHIVE_BASE}/${DISTNAME}.tar.gz"
|
|||
if [ ! -e "$GIT_ARCHIVE" ]; then
|
||||
mkdir -p "$(dirname "$GIT_ARCHIVE")"
|
||||
git rev-parse --short=12 HEAD > githash.txt
|
||||
( git ls-files --recurse-submodules ; echo "githash.txt" ) | cat | tar --transform "s,^,${DISTNAME}/," -caf ${GIT_ARCHIVE} -T-
|
||||
( git ls-files --recurse-submodules ; echo "githash.txt" ) \
|
||||
| cat \
|
||||
| sort \
|
||||
| tar --create --transform "s,^,${DISTNAME}/," --mode='u+rw,go+r-w,a+X' --files-from=- \
|
||||
| gzip -9n > ${GIT_ARCHIVE}
|
||||
sha256sum "$GIT_ARCHIVE"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue