Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature.
gitlab.com/andreijiroh-dev/dotfiles
linux
dotfiles
1#!/bin/sh
2project="$(basename $(pwd))"
3version="$(git describe)"
4key="${RELEASE_SIGNING_KEY:-\"940047813E9D641C\"}"
5
6git archive --format=tar.gz --prefix="$project-$version/" "$version" \
7 >"$project-$version.tar.gz"
8gpg --detach-sign "$@" --default-key "$key" "$project-$version.tar.gz" \
9 >/tmp/"$project-$version".tar.gz.sig