Skip to content

Commit 5544882

Browse files
committed
deb: move binary install location, add symlinks in /usr/bin
1 parent 50e0304 commit 5544882

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/linux/Packaging.Linux/build.sh

+13-4
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ tar -czvf "$SYMTARBALL" * || exit 1
154154
popd
155155

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

160161
# make the debian control file
161162
cat >"$DEBROOT/DEBIAN/control" <<EOF
@@ -167,8 +168,8 @@ Architecture: $ARCH
167168
Depends:
168169
Maintainer: GCM-Core <[email protected]>
169170
Description: Cross Platform Git Credential Manager Core command line utility.
170-
GCM Core supports authentication with a number of Git hosting providers
171-
including GitHub, BitBucket, and Azure DevOps.
171+
GCM Core supports authentication with a number of Git hosting providers
172+
including GitHub, BitBucket, and Azure DevOps.
172173
For more information see https://aka.ms/gcmcore
173174
EOF
174175

@@ -177,6 +178,14 @@ cp "$PAYLOAD/git-credential-manager-core" "$INSTALL_TO" || exit 1
177178
cp "$PAYLOAD/Atlassian.Bitbucket.UI" "$INSTALL_TO" || exit 1
178179
cp "$PAYLOAD/GitHub.UI" "$INSTALL_TO" || exit 1
179180

181+
# Create symlinks
182+
ln -s -r "$INSTALL_TO/git-credential-manager-core" \
183+
"$LINK_TO/git-credential-manager-core" || exit 1
184+
ln -s -r "$INSTALL_TO/Atlassian.Bitbucket.UI" \
185+
"$LINK_TO/Atlassian.Bitbucket.UI" || exit 1
186+
ln -s -r "$INSTALL_TO/GitHub.UI" \
187+
"$LINK_TO/GitHub.UI" || exit 1
188+
180189
dpkg-deb --build "$DEBROOT" "$DEBPKG" || exit 1
181190

182191
echo "Pack complete."

0 commit comments

Comments
 (0)