12
0

Accepting request 1256474 from devel:languages:nodejs

OBS-URL: https://build.opensuse.org/request/show/1256474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/element-desktop?expand=0&rev=77
This commit is contained in:
2025-03-27 21:32:21 +00:00
committed by Git OBS Bridge
7 changed files with 94 additions and 28 deletions

View File

@@ -25,8 +25,8 @@ diff -ru a/node_modules/esbuild/lib/main.js b/node_modules/esbuild/lib/main.js
if (isFirstPacket) {
isFirstPacket = false;
let binaryVersion = String.fromCharCode(...bytes);
- if (binaryVersion !== "0.23.1") {
- throw new Error(`Cannot start service: Host version "${"0.23.1"}" does not match binary version ${quote(binaryVersion)}`);
- if (binaryVersion !== "0.25.0") {
- throw new Error(`Cannot start service: Host version "${"0.25.0"}" does not match binary version ${quote(binaryVersion)}`);
- }
return;
}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6391c3c766facc63f1a210992218a5157ab22107a79607678beb0c6becfa101
size 3142827

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b228774f5882185d5c37045059377fe39ddf2effc43f0a3c93bdc3a14740c0b
size 3148223

View File

@@ -1,3 +1,75 @@
-------------------------------------------------------------------
Thu Mar 27 11:18:26 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Version 1.11.96
## ✨ Features
* RoomListViewModel: Track the index of the active room in the list (https://github.com/element-hq/element-web/pull/29519). Contributed by @MidhunSureshR.
* New room list: add empty state (https://github.com/element-hq/element-web/pull/29512). Contributed by @florianduros.
* Implement `MessagePreviewViewModel` (https://github.com/element-hq/element-web/pull/29514). Contributed by @MidhunSureshR.
* RoomListViewModel: Add functionality to toggle message preview setting (https://github.com/element-hq/element-web/pull/29511). Contributed by @MidhunSureshR.
* New room list: add more options menu on room list item (https://github.com/element-hq/element-web/pull/29445). Contributed by @florianduros.
* RoomListViewModel: Provide a way to resort the room list and track the active sort method (https://github.com/element-hq/element-web/pull/29499). Contributed by @MidhunSureshR.
* Change \*All rooms\* meta space name to \*All Chats\* (https://github.com/element-hq/element-web/pull/29498). Contributed by @florianduros.
* Add setting to hide avatars of rooms you have been invited to. (https://github.com/element-hq/element-web/pull/29497). Contributed by @Half-Shot.
* Room List Store: Save preferred sorting algorithm and use that on app launch (https://github.com/element-hq/element-web/pull/29493). Contributed by @MidhunSureshR.
* Add key storage toggle to Encryption settings (https://github.com/element-hq/element-web/pull/29310). Contributed by @dbkr.
* New room list: add primary filters (https://github.com/element-hq/element-web/pull/29481). Contributed by @florianduros.
* Implement MSC4142: Remove unintentional intentional mentions in replies (https://github.com/element-hq/element-web/pull/28209). Contributed by @tulir.
* White background for 'They do not match' button (https://github.com/element-hq/element-web/pull/29470). Contributed by @andybalaam.
* RoomListViewModel: Support secondary filters in the view model (https://github.com/element-hq/element-web/pull/29465). Contributed by @MidhunSureshR.
* RoomListViewModel: Support primary filters in the view model (https://github.com/element-hq/element-web/pull/29454). Contributed by @MidhunSureshR.
* Room List Store: Implement secondary filters (https://github.com/element-hq/element-web/pull/29458). Contributed by @MidhunSureshR.
* Room List Store: Implement rest of the primary filters (https://github.com/element-hq/element-web/pull/29444). Contributed by @MidhunSureshR.
* Room List Store: Support filters by implementing just the favourite filter (https://github.com/element-hq/element-web/pull/29433). Contributed by @MidhunSureshR.
* Move toggle switch for integration manager for a11y (https://github.com/element-hq/element-web/pull/29436). Contributed by @Half-Shot.
* New room list: basic flat list (https://github.com/element-hq/element-web/pull/29368). Contributed by @florianduros.
* Improve rageshake upload experience by providing useful error information (https://github.com/element-hq/element-web/pull/29378). Contributed by @Half-Shot.
* Add more functionality to the room list vm (https://github.com/element-hq/element-web/pull/29402). Contributed by @MidhunSureshR.
## 🐛 Bug Fixes
* New room list: fix compose menu action in space (https://github.com/element-hq/element-web/pull/29500). Contributed by @florianduros.
* Change ToggleHiddenEventVisibility \& GoToHome KeyBindingActions (https://github.com/element-hq/element-web/pull/29374). Contributed by @gy-mate.
* Fix Docker Healthcheck (https://github.com/element-hq/element-web/pull/29471). Contributed by @benbz.
* Room List Store: Fetch rooms after space store is ready + attach store to window (https://github.com/element-hq/element-web/pull/29453). Contributed by @MidhunSureshR.
* Room List Store: Fix bug where left rooms appear in room list (https://github.com/element-hq/element-web/pull/29452). Contributed by @MidhunSureshR.
* Add space to the bottom of the room summary actions below leave room (https://github.com/element-hq/element-web/pull/29270). Contributed by @langleyd.
* Show error screens in group calls (https://github.com/element-hq/element-web/pull/29254). Contributed by @robintown.
* Prevent user from accidentally triggering multiple identity resets (https://github.com/element-hq/element-web/pull/29388). Contributed by @uhoreg.
* Remove buggy tooltip on room intro \& homepage (https://github.com/element-hq/element-web/pull/29406). Contributed by @t3chguy.
-------------------------------------------------------------------
Tue Mar 25 16:10:59 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Fix break-esbuild-for-good.patch
-------------------------------------------------------------------
Tue Mar 25 15:46:48 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Version 1.11.95
## ✨ Features
* Room List Store: Filter rooms by active space (https://github.com/element-hq/element-web/pull/29399). Contributed by @MidhunSureshR.
* Room List - Update the room list store on actions from the dispatcher (https://github.com/element-hq/element-web/pull/29397). Contributed by @MidhunSureshR.
* Room List - Implement a minimal view model (https://github.com/element-hq/element-web/pull/29357). Contributed by @MidhunSureshR.
* New room list: add space menu in room header (https://github.com/element-hq/element-web/pull/29352). Contributed by @florianduros.
* Room List - Store sorted rooms in skip list (https://github.com/element-hq/element-web/pull/29345). Contributed by @MidhunSureshR.
* New room list: add dial to search section (https://github.com/element-hq/element-web/pull/29359). Contributed by @florianduros.
* New room list: add compose menu for spaces in header (https://github.com/element-hq/element-web/pull/29347). Contributed by @florianduros.
* Use EditInPlace control for Identity Server picker to improve a11y (https://github.com/element-hq/element-web/pull/29280). Contributed by @Half-Shot.
* First step to add header to new room list (https://github.com/element-hq/element-web/pull/29320). Contributed by @florianduros.
* Add Windows 64-bit arm link and remove 32-bit link on compatibility page (https://github.com/element-hq/element-web/pull/29312). Contributed by @t3chguy.
* Honour the backup disable flag from Element X (https://github.com/element-hq/element-web/pull/29290). Contributed by @dbkr.
## 🐛 Bug Fixes
* Fix edited code block width (https://github.com/element-hq/element-web/pull/29394). Contributed by @florianduros.
* new room list: keep space name in one line in header (https://github.com/element-hq/element-web/pull/29369). Contributed by @florianduros.
* Dismiss "Key storage out of sync" toast when secrets received (https://github.com/element-hq/element-web/pull/29348). Contributed by @richvdh.
* Minor CSS fixes for the new room list (https://github.com/element-hq/element-web/pull/29334). Contributed by @florianduros.
* Add padding to room header icon (https://github.com/element-hq/element-web/pull/29271). Contributed by @langleyd.
-------------------------------------------------------------------
Tue Mar 4 13:56:51 UTC 2025 - Dominik Heidler <dheidler@suse.de>

View File

@@ -17,7 +17,7 @@
Name: element-desktop
Version: 1.11.94
Version: 1.11.96
Release: 0
Summary: A glossy Matrix collaboration client - desktop
License: AGPL-3.0-only or GPL-3.0-only
@@ -75,6 +75,13 @@ A glossy Matrix collaboration client - desktop
%setup -q -a2
%autopatch -p1
# of course this node garbage of a "programming language" is trying to copy around some windows specific stuff on linux
echo > ./node_modules/electron-winstaller/script/select-7z-arch.js
# don't run the broken postinstall script
sed -i -e 's/^.*postinstall.*$/"foo":"bar"/' package.json
# https://blogs.gnome.org/mcatanzaro/2020/05/18/patching-vendored-rust-dependencies/
for i in cc libloading libsqlite3-sys openssl-src rustix seshat vcpkg; do
pushd .hak/hakModules/matrix-seshat/vendor/$i
@@ -118,11 +125,6 @@ export ESBUILD_BINARY_PATH=/usr/bin/esbuild
%electron_rebuild
#We do manually the rough equivalent of `hak build` to inject correct optflags
pushd .hak/hakModules/keytar
%electron_rebuild
popd
pushd .hak/hakModules/matrix-seshat
%if 0%{?suse_version}
auditable='auditable -vv'
@@ -178,6 +180,9 @@ find -name usage.txt -type f -print -delete
# Remove empty directories
find . -type d -empty -print -delete
# remove dotfiles
find -type f -name ".*" -print -delete
# fix file mode
find . -type f -exec chmod 0644 {} \;
find . -name '*.node' -exec chmod 0755 {} \;
@@ -192,9 +197,9 @@ ln -vs %{_datadir}/webapps/element "%{buildroot}%{_datadir}/element/webapp"
# Install binaries to /usr/lib
install -vd -m 0755 "%{buildroot}%{_prefix}/lib/element/"
install -pvm0755 dist/linux-universal-unpacked/resources/app/node_modules/keytar/build/Release/keytar.node "%{buildroot}%{_prefix}/lib/element/keytar.node"
mv "%{buildroot}/%{_datadir}/element/app/node_modules/keytar-forked/build/Release/keytar.node" "%{buildroot}%{_prefix}/lib/element/"
install -pvm0755 dist/linux-universal-unpacked/resources/app/node_modules/matrix-seshat/index.node "%{buildroot}%{_prefix}/lib/element/matrix-seshat.node"
ln -sfv "%{_prefix}/lib/element/keytar.node" "%{buildroot}%{_datadir}/element/app/node_modules/keytar/build/Release/keytar.node"
ln -sfv "%{_prefix}/lib/element/keytar.node" "%{buildroot}/%{_datadir}/element/app/node_modules/keytar-forked/build/Release/keytar.node"
ln -sfv "%{_prefix}/lib/element/matrix-seshat.node" "%{buildroot}%{_datadir}/element/app/node_modules/matrix-seshat/index.node"
# Config file

View File

@@ -56,21 +56,10 @@ yarn run hak fetch
# prefetch cargo crates
pushd .hak/hakModules/matrix-seshat
mkdir -pv .cargo
mkdir -pv .cargo
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 .
rm -rf vendor/openssl-src/openssl
popd
#Remove non-free binaries, starting with a few common file extensions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd3df81e7b71c2580c34ad0407eab59e7d73882dbbc9c6a0dad3a25f9f475c2c
size 39723660
oid sha256:5ff71b95824ffa0a3a601fd19c8c35de0bfe80a76c7abcd391ca27469a1a0fa6
size 45097900