Skip to content

Commit

Permalink
Merge pull request #648 from ldennington/fix-linux-compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ldennington committed Apr 4, 2022
2 parents b00c732 + 4c0fa3a commit ef862d6
Showing 1 changed file with 6 additions and 4 deletions.
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

echo $MESSAGE
echo $MESSAGE

0 comments on commit ef862d6

Please sign in to comment.