CI: Improve build scripts #2076
This commit is contained in:
parent
cfbc79606b
commit
9eb9ee767c
|
@ -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)
|
||||
|
||||
|
|
4
scripts/dist/install-tensorflow.sh
vendored
4
scripts/dist/install-tensorflow.sh
vendored
|
@ -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\"."
|
||||
|
|
Loading…
Reference in a new issue