@@ -154,8 +154,9 @@ tar -czvf "$SYMTARBALL" * || exit 1
154
154
popd
155
155
156
156
# 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
159
160
160
161
# make the debian control file
161
162
cat > " $DEBROOT /DEBIAN/control" << EOF
@@ -167,8 +168,8 @@ Architecture: $ARCH
167
168
Depends:
168
169
Maintainer: GCM-Core <[email protected] >
169
170
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.
172
173
For more information see https://aka.ms/gcmcore
173
174
EOF
174
175
@@ -177,6 +178,14 @@ cp "$PAYLOAD/git-credential-manager-core" "$INSTALL_TO" || exit 1
177
178
cp " $PAYLOAD /Atlassian.Bitbucket.UI" " $INSTALL_TO " || exit 1
178
179
cp " $PAYLOAD /GitHub.UI" " $INSTALL_TO " || exit 1
179
180
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
+
180
189
dpkg-deb --build " $DEBROOT " " $DEBPKG " || exit 1
181
190
182
191
echo " Pack complete."
0 commit comments