update CreateAppImage script to be usable from build folders
this makes it more usable for non-ci users
This commit is contained in:
+22
-8
@@ -1,12 +1,26 @@
|
|||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qt512/lib/
|
#!/bin/sh
|
||||||
ldd ./bin/chatterino
|
|
||||||
make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
|
|
||||||
cp ./resources/icon.png ./appdir/chatterino.png
|
|
||||||
|
|
||||||
wget -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
|
script_path=$(readlink -f "$0")
|
||||||
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
|
script_dir=$(dirname "$script_path")
|
||||||
wget -nv "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
chatterino_dir=$(dirname "$script_dir")
|
||||||
chmod a+x appimagetool-x86_64.AppImage
|
|
||||||
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qt512/lib/
|
||||||
|
|
||||||
|
ldd ./bin/chatterino
|
||||||
|
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"
|
||||||
|
|
||||||
|
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 \
|
./linuxdeployqt-continuous-x86_64.AppImage \
|
||||||
appdir/usr/share/applications/*.desktop \
|
appdir/usr/share/applications/*.desktop \
|
||||||
-no-translations \
|
-no-translations \
|
||||||
|
|||||||
Reference in New Issue
Block a user