diff --git a/7za-path.patch b/7za-path.patch index 7bc5658..54b06a9 100644 --- a/7za-path.patch +++ b/7za-path.patch @@ -3,8 +3,8 @@ --- vendor/node_modules/builder-util/out/7za.js.orig 2024-11-12 14:03:34.173010978 +0100 +++ vendor/node_modules/builder-util/out/7za.js 2024-11-12 14:05:06.720292070 +0100 @@ -6,13 +6,15 @@ - const fs_extra_1 = require("fs-extra"); const fs = require("fs"); + const fs_extra_1 = require("fs-extra"); async function getPath7za() { + return '/bin/false'; if (fs.existsSync(_7zip_bin_1.path7za)) { diff --git a/element-desktop-1.11.91.tar.gz b/element-desktop-1.11.91.tar.gz deleted file mode 100644 index ed38a4c..0000000 --- a/element-desktop-1.11.91.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1dc9e7511c6786aafb7585f840e4b1ab522303a8a61d384d9009fb35dd96dbed -size 3121963 diff --git a/element-desktop-1.11.94.tar.gz b/element-desktop-1.11.94.tar.gz new file mode 100644 index 0000000..d0b34ee --- /dev/null +++ b/element-desktop-1.11.94.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6391c3c766facc63f1a210992218a5157ab22107a79607678beb0c6becfa101 +size 3142827 diff --git a/element-desktop.changes b/element-desktop.changes index 93a3273..a475c81 100644 --- a/element-desktop.changes +++ b/element-desktop.changes @@ -1,3 +1,85 @@ +------------------------------------------------------------------- +Tue Mar 4 13:56:51 UTC 2025 - Dominik Heidler + +- Fix 7za-path.patch +- Fix remove-fuses.patch +- Fix no-walrus-operator.patch + +------------------------------------------------------------------- +Tue Mar 4 13:46:31 UTC 2025 - Dominik Heidler + +- Version 1.11.94 + * No changes + + ## 🐛 Bug Fixes + + * https://github.com/element-hq/element-web/pull/29377). Contributed by @RiotRobot. + + + +Version 1.11.93 + ## ✨ Features + + * https://github.com/element-hq/element-web/pull/29358). Contributed by @t3chguy. + * ChangeRecoveryKey: error handling (https://github.com/element-hq/element-web/pull/29262). Contributed by @richvdh. + * Dehydration: enable dehydrated device on "Set up recovery" (https://github.com/element-hq/element-web/pull/29265). Contributed by @richvdh. + * Render reason for invite rejection. (https://github.com/element-hq/element-web/pull/29257). Contributed by @Half-Shot. + * New room list: add search section (https://github.com/element-hq/element-web/pull/29251). Contributed by @florianduros. + * New room list: hide favourites and people meta spaces (https://github.com/element-hq/element-web/pull/29241). Contributed by @florianduros. + * New Room List: Create new labs flag (https://github.com/element-hq/element-web/pull/29239). Contributed by @MidhunSureshR. + * Stop URl preview from covering message box (https://github.com/element-hq/element-web/pull/29215). Contributed by @edent. + * Rename "security key" into "recovery key" (https://github.com/element-hq/element-web/pull/29217). Contributed by @florianduros. + * Add new verification section to user profile (https://github.com/element-hq/element-web/pull/29200). Contributed by @MidhunSureshR. + * Initial support for runtime modules (https://github.com/element-hq/element-web/pull/29104). Contributed by @t3chguy. + * Add `Forgot recovery key?` button to encryption tab (https://github.com/element-hq/element-web/pull/29202). Contributed by @florianduros. + * Add KeyIcon to key storage out of sync toast (https://github.com/element-hq/element-web/pull/29201). Contributed by @florianduros. + * Improve rendering of empty topics in the timeline (https://github.com/element-hq/element-web/pull/29152). Contributed by @Half-Shot. + + ## 🐛 Bug Fixes + + * Fix font scaling in member list (https://github.com/element-hq/element-web/pull/29285). Contributed by @florianduros. + * Grow member list search field when resizing the right panel (https://github.com/element-hq/element-web/pull/29267). Contributed by @langleyd. + * Don't reload roomview on offline connectivity check (https://github.com/element-hq/element-web/pull/29243). Contributed by @dbkr. + * Respect user's 12/24 hour preference consistently (https://github.com/element-hq/element-web/pull/29237). Contributed by @t3chguy. + * Restore the accessibility role on call views (https://github.com/element-hq/element-web/pull/29225). Contributed by @robintown. + * Revert `GoToHome` keyboard shortcut to `Ctrl`–`Shift`–`H` on macOS (https://github.com/element-hq/element-web/pull/28577). Contributed by @gy-mate. + * Encryption tab: display correct encryption panel when user cancels the reset identity flow (https://github.com/element-hq/element-web/pull/29216). Contributed by @florianduros. + + + +Version 1.11.92 + ## ✨ Features + + * Enable fuse EnableEmbeddedAsarIntegrityValidation (https://github.com/element-hq/element-desktop/pull/1979). Contributed by @t3chguy. + * Update electron-builder and harden fuse configuration (https://github.com/element-hq/element-desktop/pull/2106). Contributed by @t3chguy. + * https://github.com/element-hq/element-web/pull/29238). Contributed by @richvdh. + * Make profile header section match the designs (https://github.com/element-hq/element-web/pull/29163). Contributed by @MidhunSureshR. + * Always show back button in the right panel (https://github.com/element-hq/element-web/pull/29128). Contributed by @MidhunSureshR. + * Schedule dehydration on reload if the dehydration key is already cached locally (https://github.com/element-hq/element-web/pull/29021). Contributed by @uhoreg. + * update to twemoji 15.1.0 (https://github.com/element-hq/element-web/pull/29115). Contributed by @ara4n. + * Update matrix-widget-api (https://github.com/element-hq/element-web/pull/29112). Contributed by @toger5. + * Allow navigating through the memberlist using up/down keys (https://github.com/element-hq/element-web/pull/28949). Contributed by @MidhunSureshR. + * Style room header icons and facepile for toggled state (https://github.com/element-hq/element-web/pull/28968). Contributed by @MidhunSureshR. + * Move threads header below base card header (https://github.com/element-hq/element-web/pull/28969). Contributed by @MidhunSureshR. + * Add `Advanced` section to the user settings encryption tab (https://github.com/element-hq/element-web/pull/28804). Contributed by @florianduros. + * Fix outstanding UX issues with replies/mentions/keyword notifs (https://github.com/element-hq/element-web/pull/28270). Contributed by @taffyko. + * Distinguish room state and timeline events when dealing with widgets (https://github.com/element-hq/element-web/pull/28681). Contributed by @robintown. + * Switch OIDC primarily to new `/auth_metadata` API (https://github.com/element-hq/element-web/pull/29019). Contributed by @t3chguy. + * More memberlist changes (https://github.com/element-hq/element-web/pull/29069). Contributed by @MidhunSureshR. + + ## 🐛 Bug Fixes + + * https://github.com/element-hq/element-web/pull/29190). Contributed by @RiotRobot. + * Encryption tab: hide `Advanced` section when the key storage is out of sync (https://github.com/element-hq/element-web/pull/29129). Contributed by @florianduros. + * Fix share button in discovery settings being disabled incorrectly (https://github.com/element-hq/element-web/pull/29151). Contributed by @t3chguy. + * Ensure switching rooms does not wrongly focus timeline search (https://github.com/element-hq/element-web/pull/29153). Contributed by @t3chguy. + * Stop showing a dialog prompting the user to enter an old recovery key (https://github.com/element-hq/element-web/pull/29143). Contributed by @richvdh. + * Make themed widgets reflect the effective theme (https://github.com/element-hq/element-web/pull/28342). Contributed by @robintown. + * support non-VS16 emoji ligatures in TwemojiMozilla (https://github.com/element-hq/element-web/pull/29100). Contributed by @ara4n. + * e2e test: Verify session with the encryption tab instead of the security \& privacy tab (https://github.com/element-hq/element-web/pull/29090). Contributed by @florianduros. + * Work around cloudflare R2 / aws client incompatability (https://github.com/element-hq/element-web/pull/29086). Contributed by @dbkr. + * Fix identity server settings visibility (https://github.com/element-hq/element-web/pull/29083). Contributed by @dbkr. + ------------------------------------------------------------------- Sun Feb 2 16:41:33 UTC 2025 - Dominik Heidler diff --git a/element-desktop.spec b/element-desktop.spec index 25cd729..36bfb63 100644 --- a/element-desktop.spec +++ b/element-desktop.spec @@ -17,7 +17,7 @@ Name: element-desktop -Version: 1.11.91 +Version: 1.11.94 Release: 0 Summary: A glossy Matrix collaboration client - desktop License: AGPL-3.0-only or GPL-3.0-only @@ -223,6 +223,9 @@ done # Prevent error msg on element start ln -vs de_DE.json "%{buildroot}%{_datadir}/element/app/lib/i18n/strings/de.json" +# Remove shebangs +grep -rlZ '#! \?/usr/bin/env' "%{buildroot}%{_datadir}/element/app/node_modules/" | xargs -0 sed -i -e '/#\! \?\/usr\/bin\/env.*/d' + %fdupes %{buildroot}%{_datadir} %check diff --git a/no-walrus-operator.patch b/no-walrus-operator.patch index d544522..c325bc3 100644 --- a/no-walrus-operator.patch +++ b/no-walrus-operator.patch @@ -22,3 +22,27 @@ cmd += shlex.split(replace_sep(CXXFLAGS)) else: return {} +--- foo/node_modules/@electron/node-gyp/gyp/pylib/gyp/common.py 2024-09-26 12:47:30.529999000 +0200 ++++ ./common.py 2024-09-26 22:52:44.247875969 +0200 +@@ -432,13 +432,17 @@ + def replace_sep(s): + return s.replace(os.sep, "/") if os.sep != "/" else s + +- if CC := os.environ.get("CC_target") or os.environ.get("CC"): ++ CC = os.environ.get("CC_target") or os.environ.get("CC") ++ CXX = os.environ.get("CXX_target") or os.environ.get("CXX") ++ CFLAGS = os.environ.get("CFLAGS") ++ CXXFLAGS = os.environ.get("CXXFLAGS") ++ if CC: + cmd += shlex.split(replace_sep(CC)) +- if CFLAGS := os.environ.get("CFLAGS"): ++ if CFLAGS: + cmd += shlex.split(replace_sep(CFLAGS)) +- elif CXX := os.environ.get("CXX_target") or os.environ.get("CXX"): ++ elif CXX: + cmd += shlex.split(replace_sep(CXX)) +- if CXXFLAGS := os.environ.get("CXXFLAGS"): ++ if CXXFLAGS: + cmd += shlex.split(replace_sep(CXXFLAGS)) + else: + return {} diff --git a/remove-fuses.patch b/remove-fuses.patch index 92afffd..eb2c8d6 100644 --- a/remove-fuses.patch +++ b/remove-fuses.patch @@ -8,28 +8,20 @@ OBSERVATION(dziobian): Element creates a cookies sqlite database on startup but seems to never write anything to it. Deleting the database manually seemed to have no effect. ---- element-desktop-1.11.65/electron-builder.ts.orig 2024-04-23 15:14:00.000000000 +0200 -+++ element-desktop-1.11.65/electron-builder.ts 2024-05-16 18:51:14.513871208 +0200 -@@ -75,22 +75,6 @@ const config: Writable = - const electronBinaryPath = path.join(context.appOutDir, `${executableName}${ext}`); - console.log(`Flipping fuses for: ${electronBinaryPath}`); - -- await flipFuses(electronBinaryPath, { -- version: FuseVersion.V1, -- resetAdHocDarwinSignature: context.electronPlatformName === "darwin" && context.arch === Arch.universal, -- -- [FuseV1Options.EnableCookieEncryption]: true, -- [FuseV1Options.OnlyLoadAppFromAsar]: true, -- -- [FuseV1Options.RunAsNode]: false, -- [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, -- [FuseV1Options.EnableNodeCliInspectArguments]: false, -- -- // Mac app crashes on arm for us when `LoadBrowserProcessSpecificV8Snapshot` is enabled -- [FuseV1Options.LoadBrowserProcessSpecificV8Snapshot]: false, -- // https://github.com/electron/fuses/issues/7 -- [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: false, -- }); +--- a/node_modules/app-builder-lib/out/platformPackager.js 2025-03-04 14:50:55.947549645 +0000 ++++ b/node_modules/app-builder-lib/out/platformPackager.js 2025-03-04 14:51:16.443755655 +0000 +@@ -261,7 +261,6 @@ + const isAsar = asarOptions != null; + await this.sanityCheckPackage(appOutDir, isAsar, framework, !!this.config.disableSanityCheckAsar); + if (!(options === null || options === void 0 ? void 0 : options.disableFuses)) { +- await this.doAddElectronFuses(packContext); } - }, - files: [ + if ((_a = options === null || options === void 0 ? void 0 : options.sign) !== null && _a !== void 0 ? _a : true) { + await this.doSignAfterPack(outDir, appOutDir, platformName, arch, platformSpecificBuildOptions, targets); +@@ -696,4 +695,4 @@ + function capitalizeFirstLetter(text) { + return text.charAt(0).toUpperCase() + text.slice(1); + } +-//# sourceMappingURL=platformPackager.js.map +\ No newline at end of file ++//# sourceMappingURL=platformPackager.js.map diff --git a/vendor.tar.zst b/vendor.tar.zst index 3d7a3db..32dadcc 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:72a417d46b289007da405ee5e0a2b4a8f13743f19252e4c8a1d96ecbf139c052 -size 39529844 +oid sha256:fd3df81e7b71c2580c34ad0407eab59e7d73882dbbc9c6a0dad3a25f9f475c2c +size 39723660