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-22 17:25:05 +00:00
|
|
|
mkdir -p imageBuild/pdf2htmlEX.AppDir/usr/lib/
|
2019-11-22 12:08:20 +00:00
|
|
|
|
|
|
|
cd pdf2htmlEX/build
|
|
|
|
|
|
|
|
sudo rm -rf install_manifest.txt
|
|
|
|
|
|
|
|
make install DESTDIR=../../imageBuild/pdf2htmlEX.AppDir
|
|
|
|
|
|
|
|
cd ../../imageBuild
|
|
|
|
|
2019-11-22 17:25:05 +00:00
|
|
|
# force libfontconfig into AppImage (linuxdeploy blacklists libfontconfig)
|
|
|
|
#
|
|
|
|
cp /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 pdf2htmlEX.AppDir/usr/lib/
|
|
|
|
|
2019-11-22 12:08:20 +00:00
|
|
|
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
|
|
|
|
|
|
|
chmod a+x linuxdeploy-x86_64.AppImage
|
|
|
|
|
|
|
|
./linuxdeploy-x86_64.AppImage \
|
|
|
|
-e pdf2htmlEX.AppDir/usr/bin/pdf2htmlEX \
|
|
|
|
--create-desktop-file \
|
|
|
|
-i ../pdf2htmlEX/logo/pdf2htmlEX.svg \
|
|
|
|
--appdir=pdf2htmlEX.AppDir \
|
|
|
|
--output appimage
|
|
|
|
|
2019-11-23 07:05:50 +00:00
|
|
|
mv pdf2htmlEX-x86_64.AppImage pdf2htmlEX-$PDF2HTMLEX_VERSION-x86_64.AppImage
|