Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rocket.Chat-Desktop: update to 3.9.11 #47975

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 5 additions & 18 deletions srcpkgs/Rocket.Chat-Desktop/template
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Template file for 'Rocket.Chat-Desktop'
pkgname=Rocket.Chat-Desktop
version=3.8.7
revision=2
_electron_ver=19
version=3.9.11
revision=1
_electron_ver=24
hostmakedepends="yarn nodejs python3 pkg-config app-builder"
makedepends="electron${_electron_ver} libvips-devel"
depends="electron${_electron_ver}"
Expand All @@ -11,26 +11,13 @@ maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://rocket.chat/"
distfiles="https://github.com/RocketChat/Rocket.Chat.Electron/archive/${version}.tar.gz"
checksum=ac46390b4ae9e193efa92d5a38947c99fa94140604302b6850b9167e49eea453
checksum=936525dd74dcc9050bfb91ecf4ce80d6a5be38de8bfbb9b05f2faac7b3a9a580

export USE_SYSTEM_APP_BUILDER=true

do_configure() {
# we can't make electron skip binary download as that fails in do_build
# so instead, force a bogus architecture so it downloads its binary
# artifact, it will use the system one later anyway
# but this appears to fail on i686, so don't override there
local carch=x64
case "$XBPS_TARGET_MACHINE" in
i686*) carch=ia32 ;;
esac
npm_config_arch=$carch \
yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
--non-interactive
}

do_build() {
export NODE_ENV=production
yarn install
yarn build
yarn run electron-builder --linux --x64 --dir \
-c.electronDist=/usr/lib/electron${_electron_ver} \
Expand Down