Skip to content

Commit

Permalink
Fix shared lib copier to work on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
jwr1 committed Jan 9, 2024
1 parent a3bf810 commit 134a89e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
run: |
mv ${{ matrix.build_path }}/* linux/appimage/
cp assets/icons/logo.png linux/appimage/interstellar.png
mkdir -p linux/appimage/usr/lib/ && cp $(echo $(ldd -d linux/appimage/interstellar | grep -o '/usr/lib[^ ]*') $(ldd -d linux/appimage/lib/libflutter_linux_gtk.so | grep -o '/usr/lib/[^ ]*') | tr ' ' '\n' | sort | uniq -u) linux/appimage/usr/lib/
cp $(echo $(ldd -d linux/appimage/interstellar | grep -Eo ' (/usr)?/lib/[^ ]*') $(ldd -d linux/appimage/lib/libflutter_linux_gtk.so | grep -Eo ' (/usr)?/lib/[^ ]*') | tr ' ' '\n' | sort | uniq -u) linux/appimage/lib/
appimagetool linux/appimage interstellar-${{ matrix.target }}.AppImage
- name: Compress build for Windows
Expand Down
3 changes: 1 addition & 2 deletions linux/appimage/AppRun
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
cd "$(dirname "$0")"
export LD_LIBRARY_PATH=usr/lib
exec ./interstellar
LD_LIBRARY_PATH=lib ./interstellar
5 changes: 2 additions & 3 deletions linux/appimage/interstellar.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[Desktop Entry]
Type=Application
Terminal=false
Name=Interstellar
Exec=interstellar %U
Exec=LD_LIBRARY_PATH=lib ./interstellar %u
Icon=interstellar
Categories=Network;
Categories=Network

0 comments on commit 134a89e

Please sign in to comment.