update pack appimage

This commit is contained in:
leca 2024-05-03 18:57:26 +03:00
parent d5b566501b
commit 19414d8290
2 changed files with 21 additions and 0 deletions

Binary file not shown.

View File

@ -8,10 +8,31 @@ fi
cargo build --release
#Copying binary
mkdir -p AppImage/usr/bin
mkdir -p AppImage/usr/share/glib-2.0/schemas
cp resources/gschemas.compiled AppImage/usr/share/glib-2.0/schemas/ # Copy settings
cp target/release/learn-hieroglyph AppImage/usr/bin
#Copying libraries
libraries=`ldd target/release/learn-hieroglyph | grep so \
| sed -e '/^[^\t]/ d' \
| sed -e 's/\t//' \
| sed -e 's/.*=..//' \
| sed -e 's/ (0.*)//' `
libraries_arr=($libraries)
#creating necessary directories
for library in ${libraries_arr[@]}
do
mkdir -p AppImage/`dirname $library`
done
#copying libraries
for library in ${libraries_arr[@]}
do
cp $library AppImage/`dirname $library`
done
chmod +x AppImage/AppRun
ARCH=x86_64 appimagetool AppImage learn-hieroglyph.AppImage