forked from mirror/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
895 B
34 lines
895 B
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
APP=nheko
|
|
DIR=${APP}.AppDir
|
|
|
|
# Set up AppImage structure.
|
|
mkdir -p ${DIR}/usr/{bin,share/pixmaps,share/applications}
|
|
|
|
# Copy resources.
|
|
cp build/nheko ${DIR}/usr/bin
|
|
cp resources/nheko.desktop ${DIR}/usr/share/applications/nheko.desktop
|
|
cp resources/nheko.png ${DIR}/usr/share/pixmaps/nheko.png
|
|
|
|
for iconSize in 16 32 48 64 128 256 512; do
|
|
IconDir=${DIR}/usr/share/icons/hicolor/${iconSize}x${iconSize}/apps
|
|
mkdir -p ${IconDir}
|
|
cp resources/nheko-${iconSize}.png ${IconDir}/nheko.png
|
|
done
|
|
|
|
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
|
|
chmod a+x linuxdeployqt*.AppImage
|
|
|
|
unset QTDIR
|
|
unset QT_PLUGIN_PATH
|
|
unset LD_LIBRARY_PATH
|
|
|
|
./linuxdeployqt*.AppImage \
|
|
${DIR}/usr/share/applications/nheko.desktop \
|
|
-bundle-non-qt-libs\
|
|
-appimage
|
|
|
|
chmod +x nheko-x86_64.AppImage
|
|
|