diff --git a/element-desktop.changes b/element-desktop.changes index 461abd6..cc09f99 100644 --- a/element-desktop.changes +++ b/element-desktop.changes @@ -1,3 +1,7 @@ +------------------------------------------------------------------- +Wed Oct 5 15:28:09 UTC 2022 - Bruno Pitrus +- Fix FTBFS on ix86 and arm. + ------------------------------------------------------------------- Fri Sep 30 16:51:37 UTC 2022 - Bruno Pitrus - Remove ExcludeArch, we build Electron for 32-bit too now. diff --git a/element-desktop.spec b/element-desktop.spec index 624b4cc..eb23a4f 100644 --- a/element-desktop.spec +++ b/element-desktop.spec @@ -72,17 +72,13 @@ yarn install --offline --pure-lockfile export PATH="$PATH:node_modules/.bin" #export ELECTRON_BUILDER_CACHE="$(pwd)/electron-builder-offline-cache/" #yarn run build:native -yarn run build +yarn run build:universal %install install -d %{buildroot}{%{_datadir}/element/,%{_sysconfdir}/webapps/element} # Install the app content, replace the webapp with a symlink to the system package -if [ "$(arch)" == "aarch64" ] ; then - cp -r dist/linux-arm64-unpacked/resources/* "%{buildroot}%{_datadir}/element/" -else - cp -r dist/linux-unpacked/resources/* "%{buildroot}%{_datadir}/element/" -fi +cp -pr dist/linux-universal-unpacked/resources/* "%{buildroot}%{_datadir}/element/" ln -s %{_datadir}/webapps/element "%{buildroot}%{_datadir}/element/webapp" # Config file