Skip to content

Commit

Permalink
update CreateAppImage script to be usable from build folders
Browse files Browse the repository at this point in the history
this makes it more usable for non-ci users
  • Loading branch information
pajlada committed Oct 13, 2019
1 parent 556e8da commit 24080eb
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .CI/CreateAppImage.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
#!/bin/sh

script_path=$(readlink -f "$0")
script_dir=$(dirname "$script_path")
chatterino_dir=$(dirname "$script_dir")

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qt512/lib/

ldd ./bin/chatterino
make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
cp ./resources/icon.png ./appdir/chatterino.png
make INSTALL_ROOT=appdir -j"$(nproc)" install ; find appdir/
cp "$chatterino_dir"/resources/icon.png ./appdir/chatterino.png

appimage_path="linuxdeployqt-continuous-x86_64.AppImage"
appimage_url="https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"

wget -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
wget -nv "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod a+x appimagetool-x86_64.AppImage
if [ ! -f "$appimage_path" ]; then
wget -nv "$appimage_url"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
fi
if [ ! -f appimagetool-x86_64.AppImage ]; then
wget -nv "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod a+x appimagetool-x86_64.AppImage
fi
./linuxdeployqt-continuous-x86_64.AppImage \
appdir/usr/share/applications/*.desktop \
-no-translations \
Expand Down

0 comments on commit 24080eb

Please sign in to comment.