Skip to content

Commit

Permalink
chrpath
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertodias committed Feb 11, 2024
1 parent a1552c5 commit c58c73c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/release-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ APPDIR=paintown.AppDir
mkdir -p $APPDIR/usr/bin $APPDIR/usr/lib
cp $EXEDIR/paintown $APPDIR/usr/bin
cp $EXEDIR/misc/icon.png $APPDIR/paintown.png
#cp $EXEDIR/lib* $APPDIR/usr/lib
cd $APPDIR
ln -s usr/bin/paintown AppRun
cd ..
Expand Down Expand Up @@ -42,9 +41,10 @@ while IFS= read -r dylibpath; do
cp $dylibpath_no_rpath $APPDIR/usr/lib

# changing $dylibname
patchelf --replace-needed $dylibpath "\$ORIGIN/../lib/$dylibname" $APPDIR/usr/bin/$EXE
patchelf --replace-needed $dylibname "\$ORIGIN/../lib/$dylibname" $APPDIR/usr/bin/$EXE

done <<< "$ALL_EXE_SHARED_LIBRARIES"
chrpath -l $APPDIR/usr/bin/$EXE

echo "After"
ldd $APPDIR/usr/bin/$EXE
Expand Down

0 comments on commit c58c73c

Please sign in to comment.