#!/bin/sh set -ex #apt-get update -o APT::Cache-Start=100000000 #apt-get install -o APT::Cache-Start=100000000 -y fuse libfuse2 imagemagick wget file binutils libglib2.0-bin #mkdir -p ~/pkg2appimage #cd ~/pkg2appimage #wget -O pkg2appimage.AppImage https://github.com/AppImageCommunity/pkg2appimage/releases/download/continuous/pkg2appimage-1eceb30-x86_64.AppImage #chmod +x pkg2appimage.AppImage # FIXME: We could get automatic mounting to work with fusefs in the host and by exposesing /dev/fuse. #./pkg2appimage.AppImage --appimage-extract # NOTE: The LDoc version from LuaRocks is just as old. # Also, it does not appear to contain a Markdown plugin as is claimed # in the documentation. # This could also be done in a freebsd14-small pod. apt-get install -o APT::Cache-Start=100000000 -y rename lua-ldoc lua-discount ~/pkg2appimage/squashfs-root/AppRun AppImage.yml cd out rename 's/.*\.glibc/Applause-nightly-glibc/' *.AppImage chmod a+x *.AppImage mkdir -p /opt/htdocs/downloads/nightly/ mv *.AppImage /opt/htdocs/downloads/nightly/ cd .. # We apparently cannot change what page is shown in index.html, # so we rename it to api.html and redirect in index.html. ldoc -o api . echo '' >doc/index.html cp -r doc/* /opt/htdocs/