Skip to content

Commit

Permalink
Update appimage script
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Dec 12, 2024
1 parent b2e4f27 commit e27542c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/build_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd build
curl -L -o appimagetool-x86_64.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage

curl -L -o python.AppImage https://github.com/niess/python-appimage/releases/download/python3.12/python3.12.7-cp312-cp312-manylinux2014_x86_64.AppImage
curl -L -o python.AppImage https://github.com/niess/python-appimage/releases/download/python3.12/python3.12.8-cp312-cp312-manylinux2014_x86_64.AppImage
chmod +x python.AppImage

./python.AppImage --appimage-extract
Expand All @@ -32,6 +32,7 @@ cd build/OnTheSpot.AppDir
./AppRun -m pip install ../../dist/onthespot-*-py3-none-any.whl

rm AppRun .DirIcon python.png python*.desktop usr/share/applications/python*.desktop

cp -t . ../../src/onthespot/resources/icons/onthespot.png ../../src/onthespot/resources/org.onthespot.OnTheSpot.desktop
cp ../../src/onthespot/resources/org.onthespot.OnTheSpot.desktop usr/share/applications/

Expand All @@ -51,6 +52,13 @@ chmod +x AppRun
cp $(which ffmpeg) ../OnTheSpot.AppDir/usr/bin
cp $(which ffplay) ../OnTheSpot.AppDir/usr/bin

cp $(ldd $(which ffmpeg) | grep "=> /" | awk '{print $3}' | xargs -I {} cp {} ../OnTheSpot.AppDir/usr/lib)
cp $(ldd $(which ffplay) | grep "=> /" | awk '{print $3}' | xargs -I {} cp {} ../OnTheSpot.AppDir/usr/lib)

cp /lib/x86_64-linux-gnu/libssl.so.1.1 ../OnTheSpot.AppDir/usr/lib/
cp /lib/x86_64-linux-gnu/libz.so.1 ../OnTheSpot.AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libffi.so.7 ../OnTheSpot.AppDir/usr/lib/


echo " => Build OnTheSpot AppImage"
cd ..
Expand Down

0 comments on commit e27542c

Please sign in to comment.