1
0
element-desktop/prepare.sh

102 lines
3.8 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
set -ex
version=$1
- Version 1.11.69 ## ✨ Features * Change avatar setting component to use a menu (https://github.com/matrix-org/matrix-react-sdk/pull/12585). Contributed by @dbkr. * New user profile UI in User Settings (https://github.com/matrix-org/matrix-react-sdk/pull/12548). Contributed by @dbkr. * MSC4108 support OIDC QR code login (https://github.com/matrix-org/matrix-react-sdk/pull/12370). Contributed by @t3chguy. ## 🐛 Bug Fixes * Fix image upload preview size (https://github.com/matrix-org/matrix-react-sdk/pull/12612). Contributed by @RiotRobot. * Fix screen sharing in recent Chrome (https://github.com/matrix-org/matrix-js-sdk/pull/4243). * Fix roving tab index crash `compareDocumentPosition` (https://github.com/matrix-org/matrix-react-sdk/pull/12594). Contributed by @t3chguy. * Keep dialog glass border on narrow screens (https://github.com/matrix-org/matrix-react-sdk/pull/12591). Contributed by @dbkr. * Add missing a11y label to dismiss onboarding button in room list (https://github.com/matrix-org/matrix-react-sdk/pull/12587). Contributed by @t3chguy. * Add hover / active state on avatar setting upload button (https://github.com/matrix-org/matrix-react-sdk/pull/12590). Contributed by @dbkr. * Fix EditInPlace button styles (https://github.com/matrix-org/matrix-react-sdk/pull/12589). Contributed by @dbkr. * Fix incorrect assumptions about required fields in /search response (https://github.com/matrix-org/matrix-react-sdk/pull/12575). Contributed by @t3chguy. * Fix display of no avatar in avatar setting controls (https://github.com/matrix-org/matrix-react-sdk/pull/12558). Contributed by @dbkr. * Element-R: pass pickleKey in as raw key for indexeddb encryption (https://github.com/matrix-org/matrix-react-sdk/pull/12543). Contributed by @richvdh. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=64
2024-06-18 21:11:15 +02:00
last_packaged_version=$(cat "element-desktop.spec" | grep "^Version:" | awk '{print $NF}')
sed -i -e "s/^\(Version: *\)[^ ]*$/\1${version}/" element-desktop.spec
oldwd="$(pwd)"
tmpdir="$(mktemp -d)"
#zypper install findutils file yarn cargo cargo-vendor-filterer moreutils jq
version=$(grep "Version:" element-desktop.spec | awk '{print $2}')
- Version 1.11.54 ## 🐛 Bug Fixes * Fix CSS stacking context order determinism (https://github.com/element-hq/element-web/pull/26840). Contributed by @t3chguy. ## ✨ Features * Accessibility improvements around aria-labels and tooltips (https://github.com/matrix-org/matrix-react-sdk/pull/12062). Contributed by @t3chguy. * Add RoomKnocksBar to RoomHeader (https://github.com/matrix-org/matrix-react-sdk/pull/12077). Contributed by @charlynguyen. * Adjust tooltip side for DecoratedRoomAvatar to not obscure room name (https://github.com/matrix-org/matrix-react-sdk/pull/12079). Contributed by @t3chguy. * Iterate landmarks around the app in order to improve a11y (https://github.com/matrix-org/matrix-react-sdk/pull/12064). Contributed by @t3chguy. * Update element call embedding UI (https://github.com/matrix-org/matrix-react-sdk/pull/12056). Contributed by @toger5. * Use Compound tooltips instead of homegrown in TextWithTooltip \& InfoTooltip (https://github.com/matrix-org/matrix-react-sdk/pull/12052). Contributed by @t3chguy. ## 🐛 Bug Fixes * Fix regression around CSS stacking contexts and PIP widgets (https://github.com/matrix-org/matrix-react-sdk/pull/12094). Contributed by @t3chguy. * Fix Identity Server terms accepting not working as expected (https://github.com/matrix-org/matrix-react-sdk/pull/12109). Contributed by @t3chguy. * fix: microphone and camera dropdown doesn't work In legacy call (https://github.com/matrix-org/matrix-react-sdk/pull/12105). Contributed by @muratersin. * Revert "Set up key backup using non-deprecated APIs (#12005)" (https://github.com/matrix-org/matrix-react-sdk/pull/12102). Contributed by @BillCarsonFr. * Fix regression around read receipt animation from refs changes (https://github.com/matrix-org/matrix-react-sdk/pull/12100). Contributed by @t3chguy. * Added meaning full error message based on platform (https://github.com/matrix-org/matrix-react-sdk/pull/12074). Contributed by @Pankaj-SinghR. * Fix editing event from search room view (https://github.com/matrix-org/matrix-react-sdk/pull/11992). Contributed by @t3chguy. * Fix timeline position when moving to a room and coming back (https://github.com/matrix-org/matrix-react-sdk/pull/12055). Contributed by @florianduros. * Fix threaded reply playwright tests (https://github.com/matrix-org/matrix-react-sdk/pull/12070). Contributed by @dbkr. * Element-R: fix repeated requests to enter 4S key during cross-signing reset (https://github.com/matrix-org/matrix-react-sdk/pull/12059). Contributed by @richvdh. * Fix position of thumbnail in room timeline (https://github.com/matrix-org/matrix-react-sdk/pull/12016). Contributed by @anoopw3bdev. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=50
2024-01-17 15:30:43 +01:00
osc rm -f element-web-*.tar.gz ||:
osc rm -f element-desktop-*.tar.gz ||:
wget -c https://github.com/vector-im/element-desktop/archive/v${version}.tar.gz -O element-desktop-${version}.tar.gz
osc add -f element-desktop-*.tar.gz
cp element-desktop.spec "$tmpdir/"
cd "$tmpdir"
#dziobian: yarn has completely broken caching policy which first compiles the module and then caches the result.
#additionally, --ignore-scripts seems to be evaluated during caching, and not during install to node_modules.
#Mitigate this by resetting ~ to an empty directory
mkdir -pv "$tmpdir/home"
export HOME="$tmpdir/home"
tar -xzvvf "${oldwd}/element-desktop-${version}.tar.gz"
cd element-desktop-${version}
#These patches change results of things we want to execute below
patch -p1 --verbose < "${oldwd}/hak-remove-devdependencies.patch"
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')
# This will vendor the packages but not execute any build scripts (but see caveat about caching above)
yarn install --frozen-lockfile --ignore-engines --ignore-platform --ignore-scripts --link-duplicates
export PATH="$PATH:node_modules/.bin"
#hak does not have version pinning, which is terrible.
#Therefore we manually pin the minimum versions specified in package.json
jq '.hakDependencies[]|= sub("^\\^";"";"i")' <package.json > package.json.new
diff --color=always -bup package.json{,.new} || true
mv package.json{.new,}
yarn run hak fetch
# prefetch cargo crates
pushd .hak/hakModules/matrix-seshat
mkdir -pv .cargo
- Version 1.11.67 ## ✨ Features * Tooltip: Improve the accessibility of the composer and the rich text editor (https://github.com/matrix-org/matrix-react-sdk/pull/12459). Contributed by @florianduros. * Allow explicit configuration of OIDC dynamic registration metadata (https://github.com/matrix-org/matrix-react-sdk/pull/12514). Contributed by @t3chguy. * Tooltip: improve accessibility for messages (https://github.com/matrix-org/matrix-react-sdk/pull/12487). Contributed by @florianduros. * Collapse UserSettings tabs to just icons on narrow screens (https://github.com/matrix-org/matrix-react-sdk/pull/12505). Contributed by @dbkr. * Add room topic to right panel room info (https://github.com/matrix-org/matrix-react-sdk/pull/12503). Contributed by @t3chguy. * OIDC: pass `id_token` via `id_token_hint` on Manage Account interaction (https://github.com/matrix-org/matrix-react-sdk/pull/12499). Contributed by @t3chguy. * Tooltip: improve accessibility in room (https://github.com/matrix-org/matrix-react-sdk/pull/12493). Contributed by @florianduros. * Tooltip: improve accessibility for call and voice messages (https://github.com/matrix-org/matrix-react-sdk/pull/12489). Contributed by @florianduros. * Move the active tab in user settings to the dialog title (https://github.com/matrix-org/matrix-react-sdk/pull/12481). Contributed by @dbkr. * Tooltip: improve accessibility of spaces (https://github.com/matrix-org/matrix-react-sdk/pull/12497). Contributed by @florianduros. * Tooltip: improve accessibility of the right panel (https://github.com/matrix-org/matrix-react-sdk/pull/12490). Contributed by @florianduros. * MSC3575 (Sliding Sync) add well-known proxy support (https://github.com/matrix-org/matrix-react-sdk/pull/12307). Contributed by @EdGeraghty. ## 🐛 Bug Fixes * Reuse single PlaybackWorker between Playback instances (https://github.com/matrix-org/matrix-react-sdk/pull/12520). Contributed by @t3chguy. * Fix well-known lookup for sliding sync labs check (https://github.com/matrix-org/matrix-react-sdk/pull/12519). Contributed by @t3chguy. * Fix `element-desktop-ssoid being` included in OIDC Authorization call (https://github.com/matrix-org/matrix-react-sdk/pull/12495). Contributed by @t3chguy. * Fix beta notifications reconciliation for intentional mentions push rules (https://github.com/matrix-org/matrix-react-sdk/pull/12510). Contributed by @t3chguy. * fix avatar stretched on 1:1 call (https://github.com/matrix-org/matrix-react-sdk/pull/12494). Contributed by @I-lander. * Check native sliding sync support against an unstable feature flag (https://github.com/matrix-org/matrix-react-sdk/pull/12498). Contributed by @turt2live. * Use OPTIONS for sliding sync detection poke (https://github.com/matrix-org/matrix-react-sdk/pull/12492). Contributed by @turt2live. * TAC: hide tooltip when the release announcement is displayed (https://github.com/matrix-org/matrix-react-sdk/pull/12472). Contributed by @florianduros. Version 1.11.66 ## ✨ Features * Use a different error message for UTDs when you weren't in the room. (https://github.com/matrix-org/matrix-react-sdk/pull/12453). Contributed by @uhoreg. * Take the Threads Activity Centre out of labs (https://github.com/matrix-org/matrix-react-sdk/pull/12439). Contributed by @dbkr. * Expected UTDs: use a different message for UTDs sent before login (https://github.com/matrix-org/matrix-react-sdk/pull/12391). Contributed by @richvdh. * Add `Tooltip` to `AccessibleButton` (https://github.com/matrix-org/matrix-react-sdk/pull/12443). Contributed by @florianduros. * Add analytics to activity toggles (https://github.com/matrix-org/matrix-react-sdk/pull/12418). Contributed by @dbkr. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=61
2024-05-22 16:17:14 +02:00
cargo vendor-filterer --platform='*-unknown-linux-gnu' --platform='*-unknown-linux-gnueabihf' --all-features > .cargo/config
#remove vendored libraries
rm -rvf vendor/openssl-src/openssl
popd
#fetch node-addon-api for keytar. Unfortunately there is no package lock, therefore we use lowest supported version (for reproducility)
#we need to install it manuall in a separate directory wiithout a package.json. good that node-addon-api has no dependencies.
pushd .hak/hakModules/keytar
naa_version=$(jq -cj '.dependencies["node-addon-api"]' <package.json | sed 's/^\^//')
mkdir -pv "$tmpdir/naa"
pushd "$tmpdir/naa"
npm install --verbose --ignore-scripts --no-save node-addon-api@"${naa_version}"
popd
mv -v "$tmpdir/naa/node_modules" -t .
popd
#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
find . -name '*.wasm' -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 -vvScf "${oldwd}/vendor.tar.zst" .hak node_modules
cd "$oldwd"
echo rm -rf "$tmpdir"
echo -e "\n\nDONE creating npm offline dependencies archive 'vendor.tar.zst'"
read -p "Write changes?"
- Version 1.11.47 ## ✨ Features * Allow overwriting app.element.io when popping out widgets ([\#1277](https://github.com/vector-im/element-desktop/pull/1277)). Fixes #1187. * Implement macos title bar negative space ([\#1272](https://github.com/vector-im/element-desktop/pull/1272)). Fixes #1245. * 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 vector-im/element-web#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 vector-im/element-web#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 vector-im/element-web#24571 and vector-im/element-web#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 vector-im/element-web#25913. * Consolidate 4s passphrase input fields and use stable IDs ([\#11743](https://github.com/matrix-org/matrix-react-sdk/pull/11743)). Fixes vector-im/element-web#26228. * Disable upgraderoom command without developer mode enabled ([\#11744](https://github.com/matrix-org/matrix-react-sdk/pull/11744)). Fixes vector-im/element-web#17620. * Avoid rendering app download buttons if disabled in config ([\#11741](https://github.com/matrix-org/matrix-react-sdk/pull/11741)). Fixes vector-im/element-web#26309. * OIDC: refresh tokens ([\#11699](https://github.com/matrix-org/matrix-react-sdk/pull/11699)). Fixes vector-im/element-web#25839. Contributed by @kerryarchibald. * OIDC: register ([\#11727](https://github.com/matrix-org/matrix-react-sdk/pull/11727)). Fixes vector-im/element-web#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 vector-im/element-web#26408. * Avoid error when DMing oneself ([\#11754](https://github.com/matrix-org/matrix-react-sdk/pull/11754)). Fixes vector-im/element-web#7242. * Fix: Message shield alignment is not right. ([\#11703](https://github.com/matrix-org/matrix-react-sdk/pull/11703)). Fixes vector-im/element-web#26142. Contributed by @manancodes. * fix logging full event ([\#11755](https://github.com/matrix-org/matrix-react-sdk/pull/11755)). Fixes vector-im/element-web#26376. * OIDC: use delegated auth account URL from `OidcClientStore` ([\#11723](https://github.com/matrix-org/matrix-react-sdk/pull/11723)). Fixes vector-im/element-web#26305. Contributed by @kerryarchibald. * Fix: Members list shield alignment is not right. ([\#11700](https://github.com/matrix-org/matrix-react-sdk/pull/11700)). Fixes vector-im/element-web#26261. Contributed by @manancodes. * Fix: <detail> HTML elements clickable area too wide. ([\#11666](https://github.com/matrix-org/matrix-react-sdk/pull/11666)). Fixes vector-im/element-web#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 vector-im/element-web#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 vector-im/element-web#26153. Contributed by @manancodes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=43
2023-11-02 11:47:22 +01:00
osc vc -m "${changes}" element-desktop.changes
dos2unix element-desktop.changes