Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions script/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ echo "-- Building git at $SOURCE to $DESTINATION"
MACOSX_DEPLOYMENT_TARGET=$MACOSX_BUILD_VERSION
)

if [[ "$GIT_LFS_VERSION" ]]; then
if [[ "${NO_GIT_LFS:-}" != "1" && "$GIT_LFS_VERSION" ]]; then
echo "-- Bundling Git LFS"
GIT_LFS_FILE=git-lfs.tar.gz
GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_FILENAME}"
Expand All @@ -102,14 +102,14 @@ if [[ "$GIT_LFS_VERSION" ]]; then
exit 1
fi
else
echo "-- Skipped bundling Git LFS (set GIT_LFS_VERSION to include it in the bundle)"
echo "-- Skipped bundling Git LFS"
fi

GCM_VERSION="$(jq --raw-output '.["git-credential-manager"].version[1:]' dependencies.json)"
GCM_CHECKSUM="$(jq --raw-output ".\"git-credential-manager\".files[] | select(.arch == \"$GOARCH\" and .platform == \"darwin\") | .checksum" dependencies.json)"
GCM_URL="$(jq --raw-output ".\"git-credential-manager\".files[] | select(.arch == \"$GOARCH\" and .platform == \"darwin\") | .url" dependencies.json)"

if [[ "$GCM_VERSION" && "$GCM_URL" ]]; then
if [[ "${NO_GCM:-}" != "1" && "$GCM_VERSION" && "$GCM_URL" ]]; then
echo "-- Bundling GCM"
GCM_FILE=git-credential-manager.tar.gz
echo "-- Downloading from $GCM_URL"
Expand All @@ -135,7 +135,7 @@ else
if [ -z "$GCM_URL" ]; then
echo "-- No download URL for GCM on macOS/$GOARCH, skipping bundling"
else
echo "-- Skipped bundling GCM (set GCM_VERSION to include it in the bundle)"
echo "-- Skipped bundling GCM"
fi
fi

Expand Down
8 changes: 4 additions & 4 deletions script/build-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ DESTDIR="$DESTINATION" \
make strip install
)

if [[ "$GIT_LFS_VERSION" ]]; then
if [[ "${NO_GIT_LFS:-}" != "1" && "$GIT_LFS_VERSION" ]]; then
echo "-- Bundling Git LFS"
GIT_LFS_FILE=git-lfs.tar.gz
GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_FILENAME}"
Expand All @@ -107,10 +107,10 @@ if [[ "$GIT_LFS_VERSION" ]]; then
exit 1
fi
else
echo "-- Skipped bundling Git LFS (set GIT_LFS_VERSION to include it in the bundle)"
echo "-- Skipped bundling Git LFS"
fi

if [[ "$GCM_VERSION" && "$GCM_URL" ]]; then
if [[ "${NO_GCM:-}" != "1" && "$GCM_VERSION" && "$GCM_URL" ]]; then
echo "-- Bundling GCM"
GCM_FILE=git-credential-manager.tar.gz
echo "-- Downloading from $GCM_URL"
Expand All @@ -135,7 +135,7 @@ else
if [ -z "$GCM_URL" ]; then
echo "-- No download URL for GCM on Linux/$DEPENDENCY_ARCH, skipping bundling"
else
echo "-- Skipped bundling GCM (set GCM_VERSION to include it in the bundle)"
echo "-- Skipped bundling GCM"
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions script/build-win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ else
fi


if [[ "$GIT_LFS_VERSION" ]]; then
if [[ "${NO_GIT_LFS:-}" != "1" && "$GIT_LFS_VERSION" ]]; then
# download Git LFS, verify its the right contents, and unpack it
echo "-- Bundling Git LFS"
GIT_LFS_FILE=git-lfs.zip
Expand All @@ -84,7 +84,7 @@ if [[ "$GIT_LFS_VERSION" ]]; then
exit 1
fi
else
echo "-- Skipped bundling Git LFS (set GIT_LFS_VERSION to include it in the bundle)"
echo "-- Skipped bundling Git LFS"
fi

if [[ -f "$DESTINATION/etc/gitconfig" ]]; then
Expand Down