From 34008525b9d586fc1970ebeb1e14ecda95315fe8 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Fri, 3 Nov 2023 00:30:04 +0500 Subject: [PATCH] Update --- 03_make.sh | 5 +++++ 04_sign.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/03_make.sh b/03_make.sh index abbcb20..a113d17 100755 --- a/03_make.sh +++ b/03_make.sh @@ -6,12 +6,17 @@ date_tag=$(date +%Y.%m.%d) iso_name="Melawy-linux-${date_tag}-x86_64.iso" cp "../work/iso/arch/pkglist.x86_64.txt" "../boot/txt/Melawy-linux-${date_tag}-pkglist.txt" + +echo "Sign ../boot/txt/${iso_name}.sig ../boot/iso/${iso_name}" gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "../boot/txt/${iso_name}.sig" "../boot/iso/${iso_name}" cd "../boot/iso/" +echo "sha1sum ${iso_name}" sha1sum "${iso_name}" > "../../boot/txt/${iso_name}.sha1" + +echo "sha256sum ${iso_name}" sha256sum "${iso_name}" > "../../boot/txt/${iso_name}.sha256" notify-send -a "$(basename $(pwd)): Make" -t 999999999 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" diff --git a/04_sign.sh b/04_sign.sh index 842a622..ce51e52 100755 --- a/04_sign.sh +++ b/04_sign.sh @@ -6,12 +6,17 @@ date_tag=$(date +%Y.%m.%d) iso_name="Melawy-linux-${date_tag}-x86_64.iso" cp "../work/iso/arch/pkglist.x86_64.txt" "../boot/txt/Melawy-linux-${date_tag}-pkglist.txt" + +echo "Sign ../boot/txt/${iso_name}.sig ../boot/iso/${iso_name}" gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "../boot/txt/${iso_name}.sig" "../boot/iso/${iso_name}" cd "../boot/iso/" +echo "sha1sum ${iso_name}" sha1sum "${iso_name}" > "../../boot/txt/${iso_name}.sha1" + +echo "sha256sum ${iso_name}" sha256sum "${iso_name}" > "../../boot/txt/${iso_name}.sha256" notify-send -a "$(basename $(pwd)): Make" -t 999999999 "finished" "$(date '+%Y.%m.%d %H:%M:%S')"