11
0
2025-03-04 15:25:32 +00:00
committed by Git OBS Bridge
parent a3df642142
commit 8e5d841488
3 changed files with 20 additions and 24 deletions

View File

@@ -2,6 +2,7 @@
Tue Mar 4 13:56:51 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Fix 7za-path.patch
- Fix remove-fuses.patch
-------------------------------------------------------------------
Tue Mar 4 13:46:31 UTC 2025 - Dominik Heidler <dheidler@suse.de>

View File

@@ -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

View File

@@ -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<Configuration> =
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