From 0dd07d4a2a946cac6b0b6983f8e69ea27ae1a792 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 11 Oct 2021 05:50:13 +1000 Subject: [PATCH] Fix README.rst symlink in GitHub release asset Fixes the symlink in the GitHub tar.gz release asset created during a release. This symlink links to the README.txt file in the same directory and should be preserved to the same target when extracting. Signed-off-by: Jordan Borean --- ci/before-deploy.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ci/before-deploy.sh b/ci/before-deploy.sh index 1f86b7d1..12a3a1c5 100755 --- a/ci/before-deploy.sh +++ b/ci/before-deploy.sh @@ -48,5 +48,22 @@ fi PKG_NAME_VER="python-gssapi-${PYTHON_GSSAPI_VERSION}" -tar -czvf ./tag_build/${PKG_NAME_VER}.tar.gz --exclude='dist' --exclude='tag_build' --exclude='.git' --exclude='travis_docs_build' --exclude='.git' --transform "s,^\.,${PKG_NAME_VER}," . +tar -cvf ./tag_build/${PKG_NAME_VER}.tar \ + --exclude='dist' \ + --exclude='tag_build' \ + --exclude='.git' \ + --exclude='travis_docs_build' \ + --exclude='README.rst' \ + --transform="s,^\.,${PKG_NAME_VER}," . + +# --transform clobbers symlink so add it last using Python +python - << EOF +import tarfile + +with tarfile.open("tag_build/${PKG_NAME_VER}.tar", mode="a:") as tf: + tf.add("README.rst", arcname="${PKG_NAME_VER}/README.rst") +EOF + +gzip ./tag_build/${PKG_NAME_VER}.tar + sha512sum --binary ./tag_build/${PKG_NAME_VER}.tar.gz > ./tag_build/${PKG_NAME_VER}.sha512sum pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy