From 4c0fa3a5272db1966795f3379f83736192b0e75e Mon Sep 17 00:00:00 2001 From: Lessley Dennington Date: Mon, 4 Apr 2022 14:05:20 -0700 Subject: [PATCH] fixup! Add install from source script --- src/linux/Packaging.Linux/build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/linux/Packaging.Linux/build.sh b/src/linux/Packaging.Linux/build.sh index ba9c70c4a..dc5982ff1 100755 --- a/src/linux/Packaging.Linux/build.sh +++ b/src/linux/Packaging.Linux/build.sh @@ -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 @@ -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..." @@ -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 \ No newline at end of file