AppImage from GIT with submodules

I can’t figure this out or find much documentation pertaining to it. Locally, I run

git clone --recurse-submodules https://github.com/jorio/Bugdom

to get my source & 2 submodules. Is there a way to have AppImage.yml download the source, so I don’t have to create a tarball for each build?

app: Bugdom

resources required at build time

build:
packages:
- SDL2-devel
- cmake
- glibc >= 2.2.5
- pkgconfig
- pkgconfig(gl)
- pkgconfig(glu)
- gcc-c++
git:
- GitHub - jorio/Bugdom: 🐛 Pangea Software's Bugdom for modern systems
- GitHub - jorio/Quesa: Quesa fork with SDL support and some fixes for Nanosaur
- GitHub - jorio/Pomme: A partial, cross-platform implementation of the Macintosh Toolbox C API

script:

- git clone --recurse-submodules GitHub - jorio/Bugdom: 🐛 Pangea Software's Bugdom for modern systems

  • cd $BUILD_SOURCE_DIR/Bugdom

- cd $BUILD_SOURCE_DIR

- tar -xvzf Bugdom.tar.gz

- cd Bugdom

  • mkdir build
  • cmake -S . -B build-release -DCMAKE_BUILD_TYPE=Release
  • cmake --build build-release
  • mkdir -p $BUILD_APPDIR/usr/share/{pixmaps,applications/}
  • mkdir -p $BUILD_APPDIR/usr/lib/Bugdom/
  • mkdir -p $BUILD_APPDIR/usr/bin
  • mkdir -p $BUILD_APPDIR/usr/share/icons/hicolor/32x32/apps/
  • mkdir -p $BUILD_APPDIR/usr/share/icons/hicolor/512x512/apps/
  • echo -e '#!/usr/bin/sh

cd “$(dirname “$(readlink -f “$0”)”)”/…/lib/Bugdom/;./Bugdom’ > $BUILD_APPDIR/usr/bin/Bugdom.sh

  • chmod 0755 $BUILD_APPDIR/usr/bin/Bugdom.sh
  • mv build-release/{Data,Bugdom} $BUILD_APPDIR/usr/lib/Bugdom
  • cp cmake/Bugdom512.png $BUILD_APPDIR/usr/share/icons/hicolor/512x512/apps/Bugdom.png
  • cp cmake/Bugdom512.png $BUILD_APPDIR/Bugdom.png
  • cp $BUILD_APPDIR/Bugdom.png $BUILD_APPDIR/usr/share/pixmaps/Bugdom.png
  • echo -e "[Desktop Entry]
    Name=Bugdom
    GenericName=Bugdom
    Comment=Save Bugdom from Thorax’s evil Fire Ants
    Exec=Bugdom.sh
    Icon=Bugdom
    Terminal=false
    Type=Application
    Categories=Game;ArcadeGame;ActionGame;
    StartupNotify=false
    " > $BUILD_APPDIR/Bugdom.desktop
  • cp $BUILD_APPDIR/Bugdom.desktop $BUILD_APPDIR/usr/share/applications/Bugdom.desktop