Skip to content

Commit

Permalink
Fix SoapySDR root setting
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Jan 2, 2020
1 parent 030b42e commit d47fd23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Scripts/dist-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function embed_soapysdr()
EXCLUDED='libc\.so\.6'
try "Testing SoapySDR version..." [ "$SOAPYSDRVER" != "" ]
try "Testing SoapySDR dir..." test -d "/usr/lib/`uname -m`-linux-gnu/SoapySDR/modules$SOAPYSDRVER"
try "Creating symlinks..." ln -s . "$APPIMAGEROOT"/usr/lib/`uname -m`-linux-gnu
try "Creating SoapySDR module dir..." mkdir -p "$APPIMAGEROOT"/usr/lib/SoapySDR

SOAPYDIRS="/usr/lib/`uname -m`-linux-gnu /usr/lib /usr/local/lib"
Expand Down Expand Up @@ -167,8 +168,8 @@ if [ "$SIGDIGGER_EMBED_SOAPYSDR" != "" ]; then
echo '#!/bin/sh
SELF=$(readlink -f "$0")
HERE=${SELF%/*}
export SUSCAN_CONFIG_PATH="${HERE}/usr/share/suscan/config"
export SOAPY_SDR_ROOT="${HERE}"
export SUSCAN_CONFIG_PATH="${HERE}/../share/suscan/config"
export SOAPY_SDR_ROOT="${HERE}/.."
if [ "x$SIGDIGGER_SOAPY_SDR_ROOT" != "x" ]; then
export SOAPY_SDR_ROOT="$SIGDIGGER_SOAPY_SDR_ROOT"
fi
Expand All @@ -177,7 +178,7 @@ else
echo '#!/bin/sh
SELF=$(readlink -f "$0")
HERE=${SELF%/*}
export SUSCAN_CONFIG_PATH="${HERE}/usr/share/suscan/config"
export SUSCAN_CONFIG_PATH="${HERE}/../share/suscan/config"
exec "${HERE}"/SigDigger.app "$@"' > "$APPIMAGEROOT"/usr/bin/SigDigger
fi
try "Setting permissions to wrapper script..." chmod a+x "$APPIMAGEROOT"/usr/bin/SigDigger
Expand Down

0 comments on commit d47fd23

Please sign in to comment.