Kaydet (Commit) 18332439 authored tarafından sulincix's avatar sulincix

appimage fix

üst 68e656b1
......@@ -30,6 +30,23 @@ fi
echo "Terminal=false"
}
copy_library(){
while read stuff
do
ldd $stuff | grep "=>" | awk '{print $3}' | while read line
do
if [ -f $line ] ; then
mkdir -p $PKGDIR/$line || true
rmdir $PKGDIR/$line || true
cat $line > $PKGDIR/$line || true
cat $(readlink -f $line) > $PKGDIR/$(readlink -f $line)
chmod +x $PKGDIR/$line
fi
done
done
}
_create_metadata(){
cd $PKGDIR
_write_AppRun > $PKGDIR/AppRun
......@@ -44,6 +61,7 @@ _package(){
chmod +x ~/.appimagekit
fi
cp -prfv $INSTALLDIR/* $PKGDIR/
find $INSTALLDIR | copy_library &> /dev/null || true
cd $CURDIR
ARCH=$(uname -m) ~/.appimagekit $PKGDIR
}
......@@ -10,7 +10,7 @@ echo -e "Installed-Size: 1"
echo -ne "Depends: "
for dep in ${depends[@]:0:${#depends[@]}-1}
do
echo -ne " $dep,"
echo -ne " $dep, "
done
echo -e "${depends[@]:-1}"
echo -e "Section: $partof"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment