Exd/build-for-flatpak.sh

18 lines
943 B
Bash

#!/usr/bin/env bash
cd HiperthermiaSource
perl lib/Exd/Fontconfig.pm
perl lib/Exd/FileFormat/Fontconfig.pm
perl -Ilib lib/Exd/Gui.pm
chmod 755 -R _Inline/
cd -
cp HiperthermiaSource/app_config.prod.json HiperthermiaSource/app_config.json
cp -vr HiperthermiaSource ${FLATPAK_DEST}/Hiperthermia
glib-compile-resources --sourcedir=${FLATPAK_DEST}/Hiperthermia ${FLATPAK_DEST}/Hiperthermia/resources.xml
install -Dm644 HiperthermiaSource/me.sergiotarxz.Exd.desktop /app/share/applications/me.sergiotarxz.Exd.desktop
install -Dm644 HiperthermiaSource/me.sergiotarxz.Exd.mime.xml /app/share/mime/packages/me.sergiotarxz.Exd.mime.xml
install -Dm755 HiperthermiaSource/run.pl /app/bin/hiperthermia
install -Dm644 HiperthermiaSource/exd-logo.png /app/share/icons/hicolor/256x256/apps/me.sergiotarxz.Exd.png
update-mime-database /app/share/mime
install -Dm644 HiperthermiaSource/me.sergiotarxz.Exd.metainfo.xml -t /app/share/metainfo/