1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00
pdf2htmlEX/buildScripts/createAppImage
2019-11-23 10:28:43 +00:00

36 lines
929 B
Bash
Executable File

#!/bin/bash
# This bash script creates an AppImage for pdf2htmlEX
source buildScripts/versionEnvs
mkdir -p imageBuild/pdf2htmlEX.AppDir/usr/lib/
cd pdf2htmlEX/build
sudo rm -rf install_manifest.txt
make install DESTDIR=../../imageBuild/pdf2htmlEX.AppDir
cd ../../imageBuild
# force libfontconfig into AppImage (linuxdeploy blacklists libfontconfig)
#
cp /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 pdf2htmlEX.AppDir/usr/lib/
LINUX_DEPLOY_APP_IMAGE=linuxdeploy-$MACHINE_ARCH.AppImage
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/$LINUX_DEPLOY_APP_IMAGE
chmod a+x $LINUX_DEPLOY_APP_IMAGE
./$LINUX_DEPLOY_APP_IMAGE \
-e pdf2htmlEX.AppDir/usr/bin/pdf2htmlEX \
--create-desktop-file \
-i ../pdf2htmlEX/logo/pdf2htmlEX.svg \
--appdir=pdf2htmlEX.AppDir \
--output appimage
mv pdf2htmlEX-$MACHINE_ARCH.AppImage \
pdf2htmlEX-$PDF2HTMLEX_VERSION-$MACHINE_ARCH.AppImage