SHA256
1
0
forked from pool/element-web
element-web/prepare.sh

57 lines
2.2 KiB
Bash
Raw Normal View History

#!/bin/bash
set -ex
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}
- - Version 1.11.48 ## ✨ Features * Correctly fill window.matrixChat even when a Wrapper module is active (https://github.com/vector-im/element-web/pull/26395). Contributed by @dhenneke. * Knock on a ask-to-join room if a module wants to join the room when navigating to a room (https://github.com/matrix-org/matrix-react-sdk/pull/11787). Contributed by @dhenneke. * Element-R: Include crypto info in sentry (https://github.com/matrix-org/matrix-react-sdk/pull/11798). Contributed by @florianduros. * Element-R: Include crypto info in rageshake (https://github.com/matrix-org/matrix-react-sdk/pull/11797). Contributed by @florianduros. * Element-R: Add current version of the rust-sdk and vodozemac (https://github.com/matrix-org/matrix-react-sdk/pull/11785). Contributed by @florianduros. * Fix unfederated invite dialog (https://github.com/matrix-org/matrix-react-sdk/pull/9618). Fixes vector-im/element-meta#1466 and #22102. Contributed by @owi92. * New right panel visual language (https://github.com/matrix-org/matrix-react-sdk/pull/11664). * OIDC: add friendly errors (https://github.com/matrix-org/matrix-react-sdk/pull/11184). Fixes #25665. Contributed by @kerryarchibald. ## 🐛 Bug Fixes * Fix rightpanel hiding scrollbar (https://github.com/matrix-org/matrix-react-sdk/pull/11831). Contributed by @kerryarchibald. * Fix multi-tab session lock on Firefox not being cleared (https://github.com/matrix-org/matrix-react-sdk/pull/11800). Fixes #26165. Contributed by @ManuelHu. * Deserialise spoilers back into slash command form (https://github.com/matrix-org/matrix-react-sdk/pull/11805). Fixes #26344. * Fix Incorrect message scaling for verification request (https://github.com/matrix-org/matrix-react-sdk/pull/11793). Fixes #24304. Contributed by @capGoblin. * Fix: Unable to restore a soft-logged-out session established via SSO (https://github.com/matrix-org/matrix-react-sdk/pull/11794). Fixes #25957. Contributed by @kerryarchibald. * Use configurable github issue links more consistently (https://github.com/matrix-org/matrix-react-sdk/pull/11796). * Fix io.element.late_event received_ts vs received_at (https://github.com/matrix-org/matrix-react-sdk/pull/11789). * Make invitation dialog scrollable when infos are too long (https://github.com/matrix-org/matrix-react-sdk/pull/11753). Contributed by @nurjinjafar. * Fix spoiler text-align (https://github.com/matrix-org/matrix-react-sdk/pull/11790). Contributed by @ajbura. * Fix: Right panel keeps showing chat when unmaximizing widget. (https://github.com/matrix-org/matrix-react-sdk/pull/11697). Fixes #26265. Contributed by @manancodes. * Fix margin of invite to room button (https://github.com/matrix-org/matrix-react-sdk/pull/11780). Fixes #26410. * Update base64 import (https://github.com/matrix-org/matrix-react-sdk/pull/11784). * Set max size for Element logo in search warning (https://github.com/matrix-org/matrix-react-sdk/pull/11779). Fixes #26408. * Fix: emoji size in room header topic, remove obsolete emoji style (https://github.com/matrix-org/matrix-react-sdk/pull/11757). Fixes #26326. Contributed by @kerryarchibald. * Fix: Bubble layout design is broken (https://github.com/matrix-org/matrix-react-sdk/pull/11763). Fixes #25818. Contributed by @manancodes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=53
2023-11-07 19:21:44 +01:00
changes=$(grep "^Changes in \[$last_packaged_version\]" -B10000 CHANGELOG.md | head -n -2 | sed -e '/^==*$/d' -e 's/Changes in \[\([^\[]*\)\].*/- Version \1/' -e 's/Changes in \[\([^\[]*\)\].*/- Version \1/' -e 's/^\([^-].*\)$/ \1/' -e 's/\[.*\](\(.*\))/\1/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
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?"
- Version 1.11.47 ## 🦖 Deprecations * Deprecate customisations in favour of Module API ([\#25736](https://github.com/vector-im/element-web/pull/25736)). Fixes #25733. ## ✨ Features * vector-im/element-x-ios/issues/1824 - Convert the apple-app-site-association file to a newer format… ([\#26307](https://github.com/vector-im/element-web/pull/26307)). Contributed by @stefanceriu. * Iterate `io.element.late_event` decoration ([\#11760](https://github.com/matrix-org/matrix-react-sdk/pull/11760)). Fixes #26384. * Render timeline separator for late event groups ([\#11739](https://github.com/matrix-org/matrix-react-sdk/pull/11739)). * OIDC: revoke tokens on logout ([\#11718](https://github.com/matrix-org/matrix-react-sdk/pull/11718)). Fixes #25394. Contributed by @kerryarchibald. * Show `io.element.late_event` in MessageTimestamp when known ([\#11733](https://github.com/matrix-org/matrix-react-sdk/pull/11733)). * Show all labs flags if developerMode enabled ([\#11746](https://github.com/matrix-org/matrix-react-sdk/pull/11746)). Fixes #24571 and #8498. * Use Compound tooltips on MessageTimestamp to improve UX of date time discovery ([\#11732](https://github.com/matrix-org/matrix-react-sdk/pull/11732)). Fixes #25913. * Consolidate 4s passphrase input fields and use stable IDs ([\#11743](https://github.com/matrix-org/matrix-react-sdk/pull/11743)). Fixes #26228. * Disable upgraderoom command without developer mode enabled ([\#11744](https://github.com/matrix-org/matrix-react-sdk/pull/11744)). Fixes #17620. * Avoid rendering app download buttons if disabled in config ([\#11741](https://github.com/matrix-org/matrix-react-sdk/pull/11741)). Fixes #26309. * OIDC: refresh tokens ([\#11699](https://github.com/matrix-org/matrix-react-sdk/pull/11699)). Fixes #25839. Contributed by @kerryarchibald. * OIDC: register ([\#11727](https://github.com/matrix-org/matrix-react-sdk/pull/11727)). Fixes #25393. Contributed by @kerryarchibald. * Use stable get_login_token and remove unstable MSC3882 support ([\#11001](https://github.com/matrix-org/matrix-react-sdk/pull/11001)). Contributed by @hughns. ## 🐛 Bug Fixes * Set max size for Element logo in search warning ([\#11779](https://github.com/matrix-org/matrix-react-sdk/pull/11779)). Fixes #26408. * Avoid error when DMing oneself ([\#11754](https://github.com/matrix-org/matrix-react-sdk/pull/11754)). Fixes #7242. * Fix: Message shield alignment is not right. ([\#11703](https://github.com/matrix-org/matrix-react-sdk/pull/11703)). Fixes #26142. Contributed by @manancodes. * fix logging full event ([\#11755](https://github.com/matrix-org/matrix-react-sdk/pull/11755)). Fixes #26376. * OIDC: use delegated auth account URL from `OidcClientStore` ([\#11723](https://github.com/matrix-org/matrix-react-sdk/pull/11723)). Fixes #26305. Contributed by @kerryarchibald. * Fix: Members list shield alignment is not right. ([\#11700](https://github.com/matrix-org/matrix-react-sdk/pull/11700)). Fixes #26261. Contributed by @manancodes. * Fix: <detail> HTML elements clickable area too wide. ([\#11666](https://github.com/matrix-org/matrix-react-sdk/pull/11666)). Fixes #25454. Contributed by @manancodes. * Fix untranslated headings in the devtools dialog ([\#11734](https://github.com/matrix-org/matrix-react-sdk/pull/11734)). * Fixes invite dialog alignment and pill color contrast ([\#11722](https://github.com/matrix-org/matrix-react-sdk/pull/11722)). Contributed by @gabrc52. * Prevent select element in General settings overflowing in a room with very long room-id ([\#11597](https://github.com/matrix-org/matrix-react-sdk/pull/11597)). Contributed by @ABHIXIT2. * Fix: Clicking on members pile does nothing. ([\#11657](https://github.com/matrix-org/matrix-react-sdk/pull/11657)). Fixes #26164. Contributed by @manancodes. * Fix: Wierd shadow below room avatar in dark mode. ([\#11678](https://github.com/matrix-org/matrix-react-sdk/pull/11678)). Fixes #26153. Contributed by @manancodes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=50
2023-11-02 11:46:04 +01:00
osc vc -m "${changes}" element-web.changes