7
0
forked from pool/element-web
Files
element-web/prepare.sh

64 lines
2.4 KiB
Bash
Raw Permalink Normal View History

- Version 1.11.111 ## ✨ Features * Do not hide media from your own user by default (https://github.com/element-hq/element-web/pull/29797). Contributed by @Half-Shot. * Remember whether sidebar is shown for calls when switching rooms (https://github.com/element-hq/element-web/pull/30262). Contributed by @bojidar-bg. * Open the proper integration settings on integrations disabled error (https://github.com/element-hq/element-web/pull/30538). Contributed by @Half-Shot. * Show a "progress" dialog while invites are being sent (https://github.com/element-hq/element-web/pull/30561). Contributed by @richvdh. * Move the room list to the new ListView(backed by react-virtuoso) (https://github.com/element-hq/element-web/pull/30515). Contributed by @langleyd. ## 🐛 Bug Fixes * https://github.com/element-hq/element-web/pull/30705). Contributed by @RiotRobot. * Fix room joining over federation not specifying vias or using aliases (https://github.com/element-hq/element-web/pull/30641). Contributed by @t3chguy. * Fix stable-suffixed MSC4133 support (https://github.com/element-hq/element-web/pull/30649). Contributed by @dbkr. * Fix i18n of message when a setting is disabled (https://github.com/element-hq/element-web/pull/30646). Contributed by @dbkr. * ListView should not handle the arrow keys if there is a modifier applied (https://github.com/element-hq/element-web/pull/30633). Contributed by @langleyd. * Make BaseDialog's div keyboard focusable and fix test. (https://github.com/element-hq/element-web/pull/30631). Contributed by @langleyd. * Fix: Allow triple-click text selection to flow around pills (https://github.com/element-hq/element-web/pull/30349). Contributed by @AlirezaMrtz. * Watch for a 'join' action to know when the call is connected (https://github.com/element-hq/element-web/pull/29492). Contributed by @robintown. * Fix: add missing tooltip and aria-label to lock icon next to composer (https://github.com/element-hq/element-web/pull/30623). Contributed by @florianduros. * Don't render context menu when scrolling (https://github.com/element-hq/element-web/pull/30613). Contributed by @langleyd. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=119
2025-09-10 12:26:43 +00:00
#!/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}')
2025-10-22 13:29:10 +02:00
git rm --force element-web-*.tar.gz || :
- Version 1.11.111 ## ✨ Features * Do not hide media from your own user by default (https://github.com/element-hq/element-web/pull/29797). Contributed by @Half-Shot. * Remember whether sidebar is shown for calls when switching rooms (https://github.com/element-hq/element-web/pull/30262). Contributed by @bojidar-bg. * Open the proper integration settings on integrations disabled error (https://github.com/element-hq/element-web/pull/30538). Contributed by @Half-Shot. * Show a "progress" dialog while invites are being sent (https://github.com/element-hq/element-web/pull/30561). Contributed by @richvdh. * Move the room list to the new ListView(backed by react-virtuoso) (https://github.com/element-hq/element-web/pull/30515). Contributed by @langleyd. ## 🐛 Bug Fixes * https://github.com/element-hq/element-web/pull/30705). Contributed by @RiotRobot. * Fix room joining over federation not specifying vias or using aliases (https://github.com/element-hq/element-web/pull/30641). Contributed by @t3chguy. * Fix stable-suffixed MSC4133 support (https://github.com/element-hq/element-web/pull/30649). Contributed by @dbkr. * Fix i18n of message when a setting is disabled (https://github.com/element-hq/element-web/pull/30646). Contributed by @dbkr. * ListView should not handle the arrow keys if there is a modifier applied (https://github.com/element-hq/element-web/pull/30633). Contributed by @langleyd. * Make BaseDialog's div keyboard focusable and fix test. (https://github.com/element-hq/element-web/pull/30631). Contributed by @langleyd. * Fix: Allow triple-click text selection to flow around pills (https://github.com/element-hq/element-web/pull/30349). Contributed by @AlirezaMrtz. * Watch for a 'join' action to know when the call is connected (https://github.com/element-hq/element-web/pull/29492). Contributed by @robintown. * Fix: add missing tooltip and aria-label to lock icon next to composer (https://github.com/element-hq/element-web/pull/30623). Contributed by @florianduros. * Don't render context menu when scrolling (https://github.com/element-hq/element-web/pull/30613). Contributed by @langleyd. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=119
2025-09-10 12:26:43 +00:00
# https://github.com/element-hq/element-web/archive/refs/tags/v1.11.111.tar.gz
wget -c https://github.com/element-hq/element-web/archive/refs/tags/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
2025-10-22 13:29:10 +02:00
git add element-web-*.tar.gz
- Version 1.11.111 ## ✨ Features * Do not hide media from your own user by default (https://github.com/element-hq/element-web/pull/29797). Contributed by @Half-Shot. * Remember whether sidebar is shown for calls when switching rooms (https://github.com/element-hq/element-web/pull/30262). Contributed by @bojidar-bg. * Open the proper integration settings on integrations disabled error (https://github.com/element-hq/element-web/pull/30538). Contributed by @Half-Shot. * Show a "progress" dialog while invites are being sent (https://github.com/element-hq/element-web/pull/30561). Contributed by @richvdh. * Move the room list to the new ListView(backed by react-virtuoso) (https://github.com/element-hq/element-web/pull/30515). Contributed by @langleyd. ## 🐛 Bug Fixes * https://github.com/element-hq/element-web/pull/30705). Contributed by @RiotRobot. * Fix room joining over federation not specifying vias or using aliases (https://github.com/element-hq/element-web/pull/30641). Contributed by @t3chguy. * Fix stable-suffixed MSC4133 support (https://github.com/element-hq/element-web/pull/30649). Contributed by @dbkr. * Fix i18n of message when a setting is disabled (https://github.com/element-hq/element-web/pull/30646). Contributed by @dbkr. * ListView should not handle the arrow keys if there is a modifier applied (https://github.com/element-hq/element-web/pull/30633). Contributed by @langleyd. * Make BaseDialog's div keyboard focusable and fix test. (https://github.com/element-hq/element-web/pull/30631). Contributed by @langleyd. * Fix: Allow triple-click text selection to flow around pills (https://github.com/element-hq/element-web/pull/30349). Contributed by @AlirezaMrtz. * Watch for a 'join' action to know when the call is connected (https://github.com/element-hq/element-web/pull/29492). Contributed by @robintown. * Fix: add missing tooltip and aria-label to lock icon next to composer (https://github.com/element-hq/element-web/pull/30623). Contributed by @florianduros. * Don't render context menu when scrolling (https://github.com/element-hq/element-web/pull/30613). Contributed by @langleyd. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=119
2025-09-10 12:26:43 +00:00
#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')
tmpdir="$(mktemp -d)"
mkdir -pv "$tmpdir/home"
oldhome="$HOME"
export HOME="$tmpdir/home"
yarn cache clean
rm -rf node_modules/
#cp "$oldwd/yarn.lock" ./
yarn install --frozen-lockfile --ignore-engines --ignore-platform --ignore-scripts --link-duplicates || : # this will download the packages
#Remove non-free binaries, starting with a few common file extensions
find . -name '*.node' -print -delete
find . -name '*.jar' -print -delete
find . -name '*.dll' -print -delete
find . -name '*.exe' -print -delete
find . -name '*.dylib' -print -delete
find . -name '*.so' -print -delete
find . -name '*.o' -print -delete
find . -name '*.a' -print -delete
#now detect the rest. This should catch all ELFs that may be executed. We use sponge to avoid a race condition between find and rm
find . -type f| sponge |\
xargs -P"$(nproc)" -- sh -c 'file -S "$@" | grep -v '\'': .*script'\'' | grep '\'': .*executable'\'' | tee /dev/stderr | sed '\''s/: .*//'\'' | xargs rm -fv'
rm -f "${oldwd}/vendor.tar.zst"
ZSTD_CLEVEL=19 ZSTD_NBTHREADS=$(nproc) tar --zstd --sort=name -Scf "${oldwd}/vendor.tar.zst" node_modules
export HOME="$oldhome"
cd "$oldwd"
rm -rf "$tmpdir"
echo -e "\n\nDONE creating npm offline dependencies archive 'vendor.tar.zst'"
read -p "Write changes?"
osc vc -m "${changes}" element-web.changes
dos2unix element-web.changes