1
0
Fork 0
forked from lthn/blockchain
blockchain/utils/Zano.sh
anonimal be790c3777
README: updated Linux build deps/directions
A preliminary cleanup for the Linux build. The GUI build still needs
clarification so others can successfully build on their systems (in
other words, these new directions aren't 100% full-proof yet).

Note: build-essential should not be needed:

"If you do not plan to build Debian packages, you don't need this
package.  Starting with dpkg (>= 1.14.18) this package is required
for building Debian packages"
2019-03-05 03:26:54 +00:00

45 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
set LD_LIBRARY_PATH=${0%}
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH$PWD/lib
export QT_PLUGIN_PATH=$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
echo $QT_PLUGIN_PATH
out_file_name=~/.local/share/applications/Zano.desktop
script_dir=$( cd $(dirname $0) ; pwd -P )
call_app()
{
./Zano
exit
}
create_desktop_icon()
{
target_file_name=$1
echo "Generating icon file: $target_file_name..."
rm -f $target_file_name
echo [Desktop Entry] | tee -a $target_file_name > /dev/null
echo Version=1.0 | tee -a $target_file_name > /dev/null
echo Name=My Application | tee -a $target_file_name > /dev/null
echo GenericName=My Application | tee -a $target_file_name > /dev/null
echo Comment=Doing some funny stuff | tee -a $target_file_name > /dev/null
echo Icon=$script_dir/html/files/desktop_linux_icon.png | tee -a $target_file_name > /dev/null
echo Exec=$script_dir/Zano | tee -a $target_file_name > /dev/null
echo Terminal=true | tee -a $target_file_name > /dev/null
echo Type=Application | tee -a $target_file_name > /dev/null
echo "Categories=Qt;Utility;" | tee -a $target_file_name > /dev/null
}
create_desktop_icon $out_file_name
call_app