18 lines
641 B
Bash
Executable File
18 lines
641 B
Bash
Executable File
#!/bin/bash
|
|
# Author : Ismael Barros² <ismael@barros2.org>
|
|
# License : BSD http://en.wikipedia.org/wiki/BSD_license
|
|
|
|
AppImageAssistantDir="$(dirname $(readlink -f "$0"))/AppImageAssistant 0.9"
|
|
[ -d "$AppImageAssistantDir" ] || { echo "Could not find $AppImageAssistantDir"; exit 1; }
|
|
|
|
DesktopFile=$(ls -1 *.desktop | head -n1)
|
|
[ -n "$DesktopFile" ] || { echo "No package found"; exit 1; }
|
|
|
|
PackageName=$(egrep Name $DesktopFile | head -n1 | cut -d= -f2).run
|
|
|
|
rm -if "../$PackageName"
|
|
echo "Building package in ../${PackageName}..."
|
|
|
|
export LD_LIBRARY_PATH="$AppImageAssistantDir/usr/lib"
|
|
"$AppImageAssistantDir/package" . "../$PackageName"
|