From 9a835c59c0f6efc3848dad2e468f3088f979b979 Mon Sep 17 00:00:00 2001 From: fsLeg Date: Wed, 13 Aug 2025 23:29:07 +0300 Subject: [PATCH] element-desktop: preparation for submission to SBo --- element-desktop/README | 5 +++-- element-desktop/element-desktop.SlackBuild | 11 ++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/element-desktop/README b/element-desktop/README index da0a185..98046fb 100644 --- a/element-desktop/README +++ b/element-desktop/README @@ -7,5 +7,6 @@ End-to-end encrypted by default. Element is only available as a 64 bit program. 32 bit is unsupported. -Warning: building requires over 5 GB of space. If you're hard-pressed -on space, consider setting TMP to something other than /tmp. +Warning: vendored-sources.tar.gz is over 800 Mb and the building process +requires about 5 GB of space. If you're hard-pressed on space, consider +installing element-desktop-bin instead. diff --git a/element-desktop/element-desktop.SlackBuild b/element-desktop/element-desktop.SlackBuild index e46af93..7bf218a 100644 --- a/element-desktop/element-desktop.SlackBuild +++ b/element-desktop/element-desktop.SlackBuild @@ -28,8 +28,8 @@ PRGNAM=element-desktop WEBNAM=element-web VERSION=${VERSION:-1.11.109} BUILD=${BUILD:-1} -TAG=${TAG:-fsleg} -PKGTYPE=${PKGTYPE:-txz} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -125,8 +125,6 @@ patch -p1 < $CWD/autolaunch.patch patch -p1 < $CWD/yarn-offline.patch sed -i 's|yarn |yarn --offline |g' package.json .hak/hakModules/matrix-seshat/package.json sed -i 's|cargo build |cargo build --frozen |' .hak/hakModules/matrix-seshat/package.json -# disable autoupdate -sed -i 's|"https://packages.element.io/desktop/update/"|null|' element.io/release/config.json mkdir -p deploys mv ../$WEBNAM-$VERSION/webapp deploys/element-v$VERSION @@ -136,12 +134,11 @@ yarn install --frozen-lockfile \ --update-checksums \ --offline yarn --offline run fetch --noverify --cfgdir "" +CRATE_CC_NO_DEFAULTS=1 \ RUSTFLAGS="-C target-cpu=native" \ yarn --offline run build:native rm -r .hak/hakModules/matrix-seshat/{.cargo,node_modules,target,vendor} -# electron-builder fails if it can't upload the artifact to GitHub for which it requires a GitHub Token -# all building is done by that point, so we just continue with packaging -yarn --offline run build || true +yarn --offline run build --publish never mkdir -p $PKG/usr/{bin,lib$LIBDIRSUFFIX,share/applications} mv dist/linux-unpacked $PKG/usr/lib$LIBDIRSUFFIX/element-desktop -- 2.46.4