2019-11-22 12:08:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This bash script creates an AppImage for pdf2htmlEX
|
|
|
|
|
2019-11-23 07:05:50 +00:00
|
|
|
source buildScripts/versionEnvs
|
2019-11-22 12:08:20 +00:00
|
|
|
|
2019-11-25 16:46:14 +00:00
|
|
|
mkdir -p imageBuild/appDir/usr/lib/
|
2019-11-22 12:08:20 +00:00
|
|
|
|
|
|
|
cd pdf2htmlEX/build
|
|
|
|
|
|
|
|
sudo rm -rf install_manifest.txt
|
|
|
|
|
2019-11-25 16:46:14 +00:00
|
|
|
make install DESTDIR=../../imageBuild/appDir
|
2019-11-22 12:08:20 +00:00
|
|
|
|
|
|
|
cd ../../imageBuild
|
|
|
|
|
2019-11-22 17:25:05 +00:00
|
|
|
# force libfontconfig into AppImage (linuxdeploy blacklists libfontconfig)
|
|
|
|
#
|
2019-11-25 16:46:14 +00:00
|
|
|
cp /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 appDir/usr/lib/
|
2019-11-22 17:25:05 +00:00
|
|
|
|
2019-11-23 10:25:09 +00:00
|
|
|
LINUX_DEPLOY_APP_IMAGE=linuxdeploy-$MACHINE_ARCH.AppImage
|
2019-11-22 12:08:20 +00:00
|
|
|
|
2019-11-23 10:25:09 +00:00
|
|
|
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/$LINUX_DEPLOY_APP_IMAGE
|
2019-11-22 12:08:20 +00:00
|
|
|
|
2019-11-23 10:25:09 +00:00
|
|
|
chmod a+x $LINUX_DEPLOY_APP_IMAGE
|
|
|
|
|
2019-11-25 16:46:14 +00:00
|
|
|
./$LINUX_DEPLOY_APP_IMAGE \
|
2019-11-25 18:06:04 +00:00
|
|
|
-e appDir/usr/local/bin/pdf2htmlEX \
|
2019-11-25 16:46:14 +00:00
|
|
|
--create-desktop-file \
|
|
|
|
-i ../pdf2htmlEX/logo/pdf2htmlEX.svg \
|
|
|
|
--appdir=appDir \
|
2019-11-22 12:08:20 +00:00
|
|
|
--output appimage
|
|
|
|
|
2019-11-23 10:28:43 +00:00
|
|
|
mv pdf2htmlEX-$MACHINE_ARCH.AppImage \
|
2019-11-23 10:25:09 +00:00
|
|
|
pdf2htmlEX-$PDF2HTMLEX_VERSION-$MACHINE_ARCH.AppImage
|