aboutsummaryrefslogtreecommitdiffstats
path: root/posts
diff options
context:
space:
mode:
authorFrançois Kooman <fkooman@tuxed.net>2018-06-09 20:08:17 +0200
committerFrançois Kooman <fkooman@tuxed.net>2018-06-09 20:08:17 +0200
commitb765b2ed62071807af1f9b5d90862a52074e77e4 (patch)
treeb09039998e528edeac9768250c6a80977ca32395 /posts
parent1f6851a172830c435d37e81a49b9ecf7bb48cdc7 (diff)
downloadwww.tuxed.net-b765b2ed62071807af1f9b5d90862a52074e77e4.zip
www.tuxed.net-b765b2ed62071807af1f9b5d90862a52074e77e4.tar.gz
www.tuxed.net-b765b2ed62071807af1f9b5d90862a52074e77e4.tar.xz
update post
Diffstat (limited to 'posts')
-rw-r--r--posts/git_signed_releases.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/posts/git_signed_releases.md b/posts/git_signed_releases.md
index 335167f..ad95efe 100644
--- a/posts/git_signed_releases.md
+++ b/posts/git_signed_releases.md
@@ -1,6 +1,7 @@
---
title: Creating Signed Releases of your Git Projects
published: 2018-06-08
+modified: 2018-06-09
---
This post describes how to create a PGP signed software release from your Git
@@ -29,7 +30,7 @@ Now, with that out of the way, you can put the following POSIX shell script in
echo Version: "${PROJECT_VERSION}"
fi
- git archive "${PROJECT_VERSION}" -o "${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz"
+ git archive --prefix "${PROJECT_NAME}-${PROJECT_VERSION}/" "${PROJECT_VERSION}" -o "${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz"
gpg2 --armor --detach-sign "${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz"
### Creating a Release
@@ -60,3 +61,7 @@ You can verify the signature:
gpg: Good signature from "François Kooman <fkooman@tuxed.net>" [ultimate]
Easy peasy ;-)
+
+**UPDATE** (2018-06-09): the `git archive` command got a `--prefix` now as to
+put the contents in a directory containing the name and version of the
+software.