Skip to content
Snippets Groups Projects
appimage.sh 628 B
Newer Older
akiraohgaki's avatar
akiraohgaki committed
#!/bin/sh
akiraohgaki's avatar
akiraohgaki committed

akiraohgaki's avatar
akiraohgaki committed
PKGNAME='ocs-manager'
akiraohgaki's avatar
akiraohgaki committed
PKGVER='0.4.4'
akiraohgaki's avatar
akiraohgaki committed
PKGREL='1'

curl -L -o linuxdeployqt "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod 755 linuxdeployqt
./linuxdeployqt --appimage-extract
akiraohgaki's avatar
akiraohgaki committed

akiraohgaki's avatar
akiraohgaki committed
sh scripts/import.sh
qmake PREFIX="/usr"
make
akiraohgaki's avatar
akiraohgaki committed
make INSTALL_ROOT="${PKGNAME}.AppDir" install
akiraohgaki's avatar
akiraohgaki committed

akiraohgaki's avatar
akiraohgaki committed
./squashfs-root/AppRun ${PKGNAME}.AppDir/usr/share/applications/${PKGNAME}.desktop -bundle-non-qt-libs -no-translations
./squashfs-root/AppRun ${PKGNAME}.AppDir/usr/share/applications/${PKGNAME}.desktop -appimage
akiraohgaki's avatar
akiraohgaki committed

akiraohgaki's avatar
akiraohgaki committed
mv *.AppImage ${PKGNAME}-${PKGVER}-${PKGREL}-x86_64.AppImage