- Don't download sentry-cli

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=11
This commit is contained in:
Dominik Heidler 2022-07-20 09:16:14 +00:00 committed by Git OBS Bridge
parent a474747343
commit f3c83ce23f
3 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 20 09:15:27 UTC 2022 - Dominik Heidler <dheidler@suse.de>
- Don't download sentry-cli
-------------------------------------------------------------------
Thu Jul 7 12:25:19 UTC 2022 - Dominik Heidler <dheidler@suse.de>

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:03bed4d432d3f7bae8650edb60e7235a43cf77564f33d2f03ea82e7330e3165a
size 116057100
oid sha256:d595b57906c76cce613b7589133e557ae0034ed873874c1556f17bb0117c382a
size 88928979

View File

@ -32,14 +32,17 @@ tar xvf matrix-analytics-events-0.0.1.tgz --strip-components=1 -C package/
tar czf matrix-analytics-events-0.0.1.tgz package/
rm -r package
# fill sentry-cli cache with binaries for all architecutres
# fill sentry-cli cache with mock binaries for all architecutres
cd sentry-cli
sentry_cli_version=$(ls ../@sentry-cli-*.tgz | sed -e 's/.*cli-//' -e 's/.tgz//')
for arch in i686 x86_64 aarch64 armv7 ; do
url="https://downloads.sentry-cdn.com/sentry-cli/${sentry_cli_version}/sentry-cli-Linux-${arch}"
filehash=$(echo -n "$url" | md5sum | cut -c1-6)
filehash=$(echo -n "$url" | md5sum | cut -c1-6)
target="${filehash}-sentry-cli-Linux-${arch/_/-}"
wget -O "$target" "$url"
#wget -O "$target" "$url"
echo '#!/bin/bash' > "$target"
echo '' >> "$target"
echo "echo ${sentry_cli_version}" >> "$target"
chmod +x "$target"
done
cd ..