Commit 18b8a6ad authored by Robert Lyon's avatar Robert Lyon
Browse files

Adding the build step for chrome-php pdfs


Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 83b0b4d8
......@@ -216,6 +216,16 @@ if ($OLDVERSION >= 2016090206) {
}
}
# Build the chrome-php
if ($OLDVERSION >= 2020013000) {
echo "Building chrome-php...\n";
passthru("make pdfexport >> ../make.log 2>&1");
if (!file_exists('htdocs/lib/chrome-php/headless-chromium-php-master/src/BrowserFactory.php')) {
echo "Chrome headless php files did not build correctly! Check $BUILDDIR/make.log for details.";
exit(1);
}
}
# Package up the release
$PACKAGEDIR = 'mahara-' . $VERSION;
echo "Package directory: $BUILDDIR/$PACKAGEDIR\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment