no longer need ffmpeg patch0 which was for Termux
[goodguy/cinelerra.git] / cinelerra-5.1 / blds / bld_appimage.sh
1 #!/bin/bash
2
3 # this should bascically be the same as a static build, but the 
4 # "make install" is followed by the appimage creation. After the
5 # install does its work, the bin directory and subdirectories 
6 # contain the whole application.
7
8 # Install linuxdeploy (CLI version). Download from
9 # https://github.com/linuxdeploy/linuxdeploy/releases/continuous . It is an
10 # AppImage, best to use a directory bin under your home directory for all
11 # AppImages, because at log-in time this is put in the path if it exists.
12
13
14 ( ./autogen.sh
15   ./configure --with-single-user --with-booby --enable-static-build
16   make && make install ) 2>&1 | tee log
17 mv Makefile Makefile.cfg
18 cp Makefile.devel Makefile
19
20 mkdir AppDir                # create lowest level
21 mkdir AppDir/usr
22
23 cp -r bin AppDir/usr/    # copy whole of bin directory
24
25 # We need to specify all executables, so linuxdeploy can pick up dependencies.
26 # Any executable code in other places in not picked up (yet).
27 linuxdeploy-x86_64.AppImage --appdir=AppDir -o appimage -d image/cin.desktop -i image/cin.svg -e bin/cin -e bin/mpeg2enc -e bin/mplex -e bin/hveg2enc -e bin/lv2ui -e bin/bdwrite -e bin/zmpeg3toc -e bin/zmpeg3show -e bin/zmpeg3cat -e bin/zmpeg3ifochk -e bin/zmpeg3cc2txt -e bin/mplexlo 2>&1 | tee appimage.log
28
29 # There is now an appimage in the cinelerra-5.1 directory.