From be8dc67598caa5b75d8a5c133d3225250dc2a4b6 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 17 May 2024 08:34:32 +0200 Subject: [PATCH] portable: make sure that `package-versions.txt` is included In https://github.com/git-for-windows/git/issues/4955 it was pointed out that the i686 version ("32-bit") of Portable Git v2.45.1 is missing the `package-versions.txt` file. While it is unclear why that happened (the logs of the -- embargoed -- build do not reveal any clue about this issue), let's at least ensure that it does not happen again. Signed-off-by: Johannes Schindelin --- portable/release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portable/release.sh b/portable/release.sh index a681c90f1a..0b989368a7 100755 --- a/portable/release.sh +++ b/portable/release.sh @@ -169,6 +169,10 @@ echo $LIST | tr ' ' '\n' >$TMPPACK.list && # root directory like this: echo "$(cygpath -aw "$SCRIPT_PATH/root")\\*" >>$TMPPACK.list && (cd / && 7z a $OPTS7 $TMPPACK @${TMPPACK#/}.list) && +if test -z "$(7z l $TMPPACK etc/package-versions.txt)" +then + die "/etc/package-versions.txt is missing?!?" +fi && (cat "$SCRIPT_PATH/../7-Zip/7zS.sfx" && echo ';!@Install@!UTF-8!' && echo 'Title="Portable Git for Windows '$TITLE'"' &&