aboutsummaryrefslogtreecommitdiffhomepage
path: root/.fmsbw/50-ubuntu22-appimage
blob: 40d22e0bcf5d49c93f69dae40803e23df1e4a26a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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 '<html><head><meta http-equiv="refresh" content="0; URL=topics/README.md.html"/>' >doc/index.html
cp -r doc/* /opt/htdocs/