SHA256
1
0
forked from pool/element-web
element-web/prepare.sh
Dominik Heidler f9b9fd0923 - Version 1.11.70
##  Features
  
  * Add SSO redirect option for login page (https://github.com/element-hq/element-web/pull/27576). Contributed by @bartvdbraak.
  * Use stable endpoints for MSC3916 (https://github.com/element-hq/element-web/pull/27558). Contributed by @turt2live.
  * Switch to Rust crypto stack for all logins (https://github.com/matrix-org/matrix-react-sdk/pull/12630). Contributed by @richvdh.
  * Hide voip buttons in group rooms in environments with widgets disabled (https://github.com/matrix-org/matrix-react-sdk/pull/12664). Contributed by @t3chguy.
  * Minor tweaks to UserSettings dialog (https://github.com/matrix-org/matrix-react-sdk/pull/12651). Contributed by @florianduros.
  * Hide voice call button when redundant (https://github.com/matrix-org/matrix-react-sdk/pull/12639). Contributed by @t3chguy.
  * Improve accessibility of the room summary card (https://github.com/matrix-org/matrix-react-sdk/pull/12586). Contributed by @t3chguy.
  * Show tooltips on narrow tabbed views (https://github.com/matrix-org/matrix-react-sdk/pull/12624). Contributed by @dbkr.
  * Update gfm.css to github-markdown-css (https://github.com/matrix-org/matrix-react-sdk/pull/12613). Contributed by @t3chguy.
  * Cache e2eStatus to avoid concerning unencrypted flicker when changing rooms (https://github.com/matrix-org/matrix-react-sdk/pull/12606). Contributed by @t3chguy.
  * Tweak copy for user verification toast (https://github.com/matrix-org/matrix-react-sdk/pull/12605). Contributed by @t3chguy.
  * Support s tags for strikethrough for Matrix v1.10 (https://github.com/matrix-org/matrix-react-sdk/pull/12604). Contributed by @t3chguy.
  
  ## 🐛 Bug Fixes
  
  * Fix "Unable to restore session" error (https://github.com/matrix-org/matrix-js-sdk/pull/4299).
  * Fix error when sending encrypted messages in large rooms (https://github.com/matrix-org/matrix-js-sdk/pull/4297).
  * Remove redundant copy in deactive uia modal (https://github.com/matrix-org/matrix-react-sdk/pull/12668). Contributed by @t3chguy.
  * Fix high contrast theme in settings (https://github.com/matrix-org/matrix-react-sdk/pull/12649). Contributed by @florianduros.
  * Fix background on live location sharing footer (https://github.com/matrix-org/matrix-react-sdk/pull/12629). Contributed by @t3chguy.
  * Remove outdated iframe sandbox attribute (https://github.com/matrix-org/matrix-react-sdk/pull/12633). Contributed by @t3chguy.
  * Remove stray setState which caused encryption state shields to flicker (https://github.com/matrix-org/matrix-react-sdk/pull/12632). Contributed by @t3chguy.
  * Fix stray background colour on markdown body (https://github.com/matrix-org/matrix-react-sdk/pull/12628). Contributed by @t3chguy.
  * Fix widgets not being cleaned up correctly. (https://github.com/matrix-org/matrix-react-sdk/pull/12616). Contributed by @toger5.
  * Add in-progress view to display name EditInPlace (https://github.com/matrix-org/matrix-react-sdk/pull/12609). Contributed by @dbkr.
  * Fix config override of other settings levels (https://github.com/matrix-org/matrix-react-sdk/pull/12593). Contributed by @langleyd.
  * Don't show 'saved' on display name save error (https://github.com/matrix-org/matrix-react-sdk/pull/12600). Contributed by @dbkr.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=73
2024-07-12 11:02:38 +00:00

62 lines
2.3 KiB
Bash

#!/bin/bash
set -ex
version=$1
sed -i -e "s/^\(Version: *\)[^ ]*$/\1${version}/" element-web.spec
oldwd="$(pwd)"
# cleanup old stuff
(find -maxdepth 1 -type d -name 'element-web-*' | xargs rm -r) ||:
version=$(grep "Version:" element-web.spec | awk '{print $2}')
last_packaged_version=$(osc cat devel:languages:nodejs/element-web/element-web.spec | grep "^Version:" | awk '{print $NF}')
osc rm --force element-web-*.tar.gz || :
wget -c https://github.com/vector-im/element-web/archive/v${version}.tar.gz -O element-web-${version}.tar.gz
wget https://meet.element.io/libs/external_api.min.js -O jitsi_external_api.min.js
osc add element-web-*.tar.gz
#zypper install yarn cargo gcc-c++ sqlcipher-devel libsecret-devel
rm -rf "element-web-${version}"
tar xzvf element-web-${version}.tar.gz
cd element-web-${version}
changes=$(grep "^Changes in \[$last_packaged_version\]" -B10000 CHANGELOG.md | head -n -2 | sed -e '/^==*$/d' -e 's/Changes in \[\([^\[]*\)\].*/Version \1/' -e 's/^\([^-].*\)$/ \1/' -e 's/\[.*\](\(.*\))/\1/g' -e 's/^ *Version /Version /g')
echo 'yarn-offline-mirror "./npm-packages-offline-cache"' > .yarnrc
yarn cache clean
rm -rf node_modules/
yarn install --pure-lockfile --ignore-engines || : # this will download tha packages into the offline cache
# download some additional dependencie that slips through this earlier method
cd ./npm-packages-offline-cache/
# fill sentry-cli cache with mock binaries for all architecutres
mkdir -p sentry-cli
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 riscv64 ppc64 ppc64le s390x; do
url="https://downloads.sentry-cdn.com/sentry-cli/${sentry_cli_version}/sentry-cli-Linux-${arch}"
filehash=$(echo -n "$url" | md5sum | cut -c1-6)
target="${filehash}-sentry-cli-Linux-${arch/_/-}"
#wget -O "$target" "$url"
echo '#!/bin/bash' > "$target"
echo '' >> "$target"
echo "echo ${sentry_cli_version}" >> "$target"
chmod +x "$target"
done
cd ..
cd ..
tar czf npm-packages-offline-cache.tar.gz ./npm-packages-offline-cache
cp npm-packages-offline-cache.tar.gz "$oldwd/"
cd "$oldwd"
echo -e "\n\nDONE creating npm dependency offline cache file 'npm-packages-offline-cache.tar.gz'"
read -p "Write changes?"
osc vc -m "${changes}" element-web.changes
dos2unix element-web.changes