Skip to content

Commit 2960f4d

Browse files
committed
RPM: Patch binaries instead of creating symlink
See #4
1 parent 134a009 commit 2960f4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/resources/rpm/post.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ln -f -s "$CLI_DIR"/github /usr/bin || :
1111

1212
# https://github.com/shiftkey/desktop/issues/21
1313
if [ ! -f /usr/lib64/libcurl-gnutls.so.4 ]; then
14-
ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4
14+
find "$INSTALL_DIR" -type f -executable -exec \
15+
sed -i 's/libcurl-gnutls\.so\.4/libcurl.so.4\x00\x00\x00\x00\x00\x00\x00/g' {} \; 2>/dev/null || true
1516
fi
1617

1718
exit 0

0 commit comments

Comments
 (0)