CI: Improve build scripts #2076

This commit is contained in:
Michael Mayer 2022-03-01 18:16:50 +01:00
parent cfbc79606b
commit 9eb9ee767c
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ BUILD_DATE=$(date -u +%y%m%d)
BUILD_VERSION=$(git describe --always)
BUILD_TAG=${BUILD_DATE}-${BUILD_VERSION}
BUILD_ID=${BUILD_TAG}-${BUILD_OS}-${BUILD_ARCH^^}
BUILD_NAME=$(realpath "${2:-photoprism}")
BUILD_NAME=${2:-photoprism}
GO_BIN=${GO_BIN:-/usr/local/go/bin/go}
GO_VER=$($GO_BIN version)

View file

@ -43,7 +43,7 @@ if [ ! -f "$TMPDIR/$INSTALL_FILE" ]; then
curl --create-dirs -fsSL -o "$TMPDIR/$INSTALL_FILE" "$URL"
fi
echo "Extracting \"$TMPDIR/$INSTALL_FILE\" to \"$DESTDIR\"..."
echo "Extracting \"$TMPDIR/$INSTALL_FILE\" to \"$DESTDIR\"."
if [ -f "$TMPDIR/$INSTALL_FILE" ]; then
tar --overwrite --mode=755 -C "$DESTDIR" -xzf "$TMPDIR/$INSTALL_FILE"
@ -53,7 +53,7 @@ else
fi
if [[ $DESTDIR == "/usr" || $DESTDIR == "/usr/local" ]]; then
echo "Running ldconfig..."
echo "Running \"ldconfig\"."
ldconfig
else
echo "Running \"ldconfig -n $DESTDIR/lib\"."