1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00

ensure files copied into AppImage Debian archive and Docker image are readable added sudo as a build tool

This commit is contained in:
Stephen Gaito 2020-06-11 06:37:23 +01:00
parent 174f28a21a
commit d327b43a43
4 changed files with 30 additions and 0 deletions

View File

@ -36,6 +36,14 @@ make install \
cd ../imageBuild
# Make sure directories can be traversed by nobody
#
find appDir -type d -exec chmod 755 {} \;
#
# Make sure files can be read by nobody
#
find appDir -type f -exec chmod 644 {} \;
# force libfontconfig into AppImage (linuxdeploy blacklists libfontconfig)
# (turned off since libfontconfig needs to be matched to the underlying
# OS's collection of fonts and /etc/fonts configuration files)

View File

@ -94,6 +94,18 @@ touch $conffilesFile
#
cd imageBuild
#
# Make sure directories can be traversed by nobody
#
find debianDir -type d -exec chmod 755 {} \;
#
# Make sure files can be read by nobody
#
find debianDir -type f -exec chmod 644 {} \;
#
# Make sure root:root owns all files
#
sudo chown -R root:root debianDir
#
# Build the package
#
dpkg --build debianDir $DPKG_NAME

View File

@ -35,6 +35,15 @@ cd ../imageBuild/dockerDir
copy_deps
# Make sure directories can be traversed by nobody
#
find . -type d -exec chmod 755 {} \;
#
# Make sure files can be read by nobody
#
find . -type f -exec chmod 644 {} \;
# Now. IF we have docker, THEN build the docker image...
if [ -x "$(which docker)" ]; then

View File

@ -16,6 +16,7 @@ set -ev
sudo apt-get update
sudo apt-get $UNATTENDED install \
sudo \
wget \
git \
pkg-config \