export SIGNER="hebasto"
export GUIX_SIGS_REPO="/home/hebasto/guix.sigs"
export DETACHED_SIGS_REPO="/home/hebasto/bitcoin-detached-sigs"
The Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers subdirectory must resides in the depends/SDKsdirectory.
Fork the bitcoin-core/guix.sigs repository on GitHub (if not forked yet).
pushd /home/hebasto/guix.sigs
git remote add hebasto [email protected]:hebasto/guix.sigs.git
git config remote.pushDefault hebasto
popd
If building for a tag:
VERSION=22.0rc1
git checkout v$VERSION
If building for a non-tagged commit:
VERSION=$(git rev-parse --short=12 HEAD)
contrib/guix/guix-build
contrib/guix/guix-attest
pushd $GUIX_SIGS_REPO
git checkout -b ${VERSION}-non-codesigned
git add $VERSION
git commit -m "Add attestations by $SIGNER for $VERSION non-codesigned"
git push
git switch main
popd
Submit a PR to the bitcoin-core/guix.sigs repository on GitHub.
pushd $DETACHED_SIGS_REPO
git fetch
git checkout $VERSION
popd
contrib/guix/guix-codesign
contrib/guix/guix-attest
pushd $GUIX_SIGS_REPO
git checkout -b ${VERSION}-codesigned
git add $VERSION
git commit -m "Add attestations by $SIGNER for $VERSION codesigned"
git push
git switch main
popd
Submit a PR to the bitcoin-core/guix.sigs repository on GitHub.
pushd $GUIX_SIGS_REPO
git pull
popd
contrib/guix/guix-verify
tested, worked.