aboutsummaryrefslogtreecommitdiffstats
path: root/appimage/entrypoint
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-03-12 02:54:48 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-03-19 00:53:18 +0100
commit1b85faa61abcec253f9fb5aab6f94c844e4df816 (patch)
treea4950664fd2c4942e348cf8e37791e79b3a4c9bc /appimage/entrypoint
parent3a902ad20afd385955e0d094d00bf7f385b1c3f0 (diff)
downloadqpdf-1b85faa61abcec253f9fb5aab6f94c844e4df816.tar.zst
Convert AppImage build to use cmake
Diffstat (limited to 'appimage/entrypoint')
-rwxr-xr-xappimage/entrypoint15
1 files changed, 9 insertions, 6 deletions
diff --git a/appimage/entrypoint b/appimage/entrypoint
index b1ee7eb0..12ed9387 100755
--- a/appimage/entrypoint
+++ b/appimage/entrypoint
@@ -1,8 +1,5 @@
#!/bin/bash
set -e
-if [ "$SKIP_TESTS" = "1" ]; then
- touch /tmp/skip-tests
-fi
if [ $(id -u) = 0 ]; then
if [ ! -d /tmp/build ]; then
echo "/tmp/build must exist"
@@ -10,6 +7,10 @@ if [ $(id -u) = 0 ]; then
fi
id=$(stat -c %u /tmp/build)
adduser --home /tmp/build --no-create-home --uid $id --disabled-password --gecos build build
+ touch /tmp/.env
+ echo "export SKIP_TESTS=$SKIP_TESTS" >> /tmp/.env
+ echo "export RUN_SHELL=$RUN_SHELL" >> /tmp/.env
+ chown build /tmp/.env
exec sudo -iu build $0 "$@"
fi
@@ -22,7 +23,9 @@ if [ ! -d qpdf ]; then
git clone "$@" qpdf
fi
cd qpdf
-if [ -f /tmp/skip-tests ]; then
- export SKIP_TESTS=1
+source /tmp/.env
+if [ "$RUN_SHELL" = "1" ]; then
+ bash
+else
+ ./appimage/build-appimage
fi
-./appimage/build-appimage