Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install from source Debian compile bug #648

Merged
merged 1 commit into from
Apr 4, 2022
Merged
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
10 changes: 6 additions & 4 deletions src/linux/Packaging.Linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ if [ $INSTALL_FROM_SOURCE = false ]; then

# Build .deb
INSTALL_TO="$DEBROOT/usr/local/share/gcm-core/"
LINK_TO="$DEBROOT/usr/bin/"
LINK_TO="$DEBROOT/usr/local/bin/"
mkdir -p "$DEBROOT/DEBIAN" "$INSTALL_TO" "$LINK_TO" || exit 1

# make the debian control file
Expand All @@ -201,8 +201,6 @@ Description: Cross Platform Git Credential Manager command line utility.
including GitHub, BitBucket, and Azure DevOps.
For more information see https://aka.ms/gcm
EOF

dpkg-deb --build "$DEBROOT" "$DEBPKG" || exit 1
else
echo "Installing..."

Expand All @@ -217,10 +215,14 @@ mkdir -p "$INSTALL_TO" "$LINK_TO"
# Copy all binaries and shared libraries to target installation location
cp -R "$PAYLOAD"/* "$INSTALL_TO" || exit 1

if [ $INSTALL_FROM_SOURCE = false ]; then
dpkg-deb --build "$DEBROOT" "$DEBPKG" || exit 1
fi

# Create symlink
if [ ! -f "$LINK_TO/git-credential-manager-core" ]; then
ln -s -r "$INSTALL_TO/git-credential-manager-core" \
"$LINK_TO/git-credential-manager-core" || exit 1
fi

This comment was marked as off-topic.

echo $MESSAGE
echo $MESSAGE