AppImage real?

Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
swurl 2025-04-14 20:45:18 -04:00
parent 807397680a
commit 053d68deef
13 changed files with 402 additions and 2 deletions

View file

@ -1,5 +1,9 @@
#!/bin/bash -ex
set -e
declare INSTALLABLES=`find build -type d -exec test -e '{}/cmake_install.cmake' ';' -print`
set +e
GITDATE="$(git show -s --date=short --format='%ad' | sed 's/-//g')"
GITREV="$(git show -s --format='%h')"
ARTIFACTS_DIR="$PWD/artifacts"
@ -44,6 +48,10 @@ create_appimage() {
mkdir -p "${app_dir}/usr/optional/libstdc++"
mkdir -p "${app_dir}/usr/optional/libgcc_s"
echo "Copying libraries..."
for i in $INSTALLABLES; do cmake --install $i --prefix ${app_dir}/usr; done
if [ -d "build/bin/Release" ]; then
cp "build/bin/Release/${binary_name}" "${app_dir}/usr/bin/" || echo "${binary_name} not found for AppDir"
else