update pack appimage
This commit is contained in:
parent
d5b566501b
commit
19414d8290
Binary file not shown.
|
@ -8,10 +8,31 @@ fi
|
||||||
|
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
|
#Copying binary
|
||||||
mkdir -p AppImage/usr/bin
|
mkdir -p AppImage/usr/bin
|
||||||
mkdir -p AppImage/usr/share/glib-2.0/schemas
|
mkdir -p AppImage/usr/share/glib-2.0/schemas
|
||||||
cp resources/gschemas.compiled AppImage/usr/share/glib-2.0/schemas/ # Copy settings
|
cp resources/gschemas.compiled AppImage/usr/share/glib-2.0/schemas/ # Copy settings
|
||||||
cp target/release/learn-hieroglyph AppImage/usr/bin
|
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
|
chmod +x AppImage/AppRun
|
||||||
ARCH=x86_64 appimagetool AppImage learn-hieroglyph.AppImage
|
ARCH=x86_64 appimagetool AppImage learn-hieroglyph.AppImage
|
||||||
|
|
Loading…
Reference in New Issue