fix new filename on github and error on failed download
This commit is contained in:
parent
e01c011465
commit
d45197ca81
@ -65,15 +65,14 @@
|
|||||||
then
|
then
|
||||||
echo "signal-cli-${SIGNALCLIVERS} already installed - no Update available"
|
echo "signal-cli-${SIGNALCLIVERS} already installed - no Update available"
|
||||||
else
|
else
|
||||||
[ -f signal-cli-${SIGNALCLIVERS}-Linux.tar.gz ] || wget -q "https://github.com/AsamK/signal-cli/releases/download/v${SIGNALCLIVERS}/signal-cli-${SIGNALCLIVERS}-Linux.tar.gz"
|
[ -f signal-cli-${SIGNALCLIVERS}.tar.gz ] || wget -q "https://github.com/AsamK/signal-cli/releases/download/v${SIGNALCLIVERS}/signal-cli-${SIGNALCLIVERS}.tar.gz"
|
||||||
tar --no-same-permissions -xzf signal-cli-${SIGNALCLIVERS}-Linux.tar.gz
|
[ -f signal-cli-${SIGNALCLIVERS}.tar.gz ] || g_echo_error "Could not download https://github.com/AsamK/signal-cli/releases/download/v${SIGNALCLIVERS}/signal-cli-${SIGNALCLIVERS}.tar.gz"
|
||||||
|
tar --no-same-permissions -xzf signal-cli-${SIGNALCLIVERS}.tar.gz || g_echo_error "Could not extract signal-cli-${SIGNALCLIVERS}.tar.gz"
|
||||||
if [ $(uname -m) == aarch64 ]
|
if [ $(uname -m) == aarch64 ]
|
||||||
then
|
then
|
||||||
SIGNALLIBVERS=$(ls signal-cli-${SIGNALCLIVERS}/lib/libsignal-client-*.jar | cut -d'-' -f5 | sed 's/.jar$//')
|
SIGNALLIBVERS=$(ls signal-cli-${SIGNALCLIVERS}/lib/libsignal-client-*.jar | cut -d'-' -f5 | sed 's/.jar$//')
|
||||||
curl -Lo libsignal_jni.so "https://gitlab.com/packaging/libsignal-client/-/jobs/artifacts/v${SIGNALLIBVERS}/raw/libsignal-client/arm64/libsignal_jni.so?job=libsignal-client-arm64" || g_echo_error "Failed to doenload libsignal_jni.so"
|
curl -Lo libsignal_jni.so "https://gitlab.com/packaging/libsignal-client/-/jobs/artifacts/v${SIGNALLIBVERS}/raw/libsignal-client/arm64/libsignal_jni.so?job=libsignal-client-arm64" || g_echo_error "Failed to doenload libsignal_jni.so"
|
||||||
cp -p libsignal_jni.so libsignal_jni.so-${SIGNALLIBVERS}
|
cp -p libsignal_jni.so libsignal_jni.so-${SIGNALLIBVERS}
|
||||||
#rm -f libsignal_jni.so
|
|
||||||
#tar --no-same-permissions -xzf libsignal_jni.so-v${SIGNALLIBVERS}-aarch64-unknown-linux-gnu.tar.gz
|
|
||||||
zip -uj signal-cli-${SIGNALCLIVERS}/lib/libsignal-client-${SIGNALLIBVERS}.jar libsignal_jni.so
|
zip -uj signal-cli-${SIGNALCLIVERS}/lib/libsignal-client-${SIGNALLIBVERS}.jar libsignal_jni.so
|
||||||
fi
|
fi
|
||||||
chown -R signal. signal-cli-${SIGNALCLIVERS}
|
chown -R signal. signal-cli-${SIGNALCLIVERS}
|
||||||
|
Loading…
Reference in New Issue
Block a user