Fixes for releasing

This commit is contained in:
Brian Picciano 2024-07-14 13:56:43 +02:00
parent 67d17efde0
commit 8dd6768786
3 changed files with 7 additions and 4 deletions

View File

@ -69,7 +69,7 @@ in rec {
'';
};
vendorHash = "sha256-fBCwaZLusixNnD1QG0XtDe/NpNvonI7wBhqWbRrLFAg=";
vendorHash = "sha256-JhcoMLVc6WHRiO3nNDyvGoxZRTtYf7e65nRMaK/EODo=";
subPackages = [
"./cmd/entrypoint"

View File

@ -9,7 +9,7 @@
pkgbuild = pkgs.writeText "isle-arch-PKGBUILD-${releaseName}-${cpuArch}" ''
pkgname=isle
pkgver=${releaseName}
pkgver=${builtins.replaceStrings ["-"] ["_"] releaseName}
pkgrel=0
pkgdesc="The foundation for an autonomous community cloud infrastructure."
arch=('${cpuArch}')

View File

@ -5,8 +5,11 @@ set -e
scriptDir=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)
cd "$scriptDir"
printf "Release name (e.g. \"v0.1.2\"): "
read -r releaseName
releaseName="$1"
if [ -z "$releaseName" ]; then
echo "USAGE: $0 \"v0.1.2\""
exit 1
fi
releasesDir="$(pwd)/releases"
mkdir -p "$releasesDir"