Rocket.Chat-Desktop: fix build on archs electron does not support
This commit is contained in:
parent
65a4ca3c86
commit
d0a2cd478d
1 changed files with 11 additions and 6 deletions
|
@ -2,11 +2,11 @@
|
||||||
pkgname=Rocket.Chat-Desktop
|
pkgname=Rocket.Chat-Desktop
|
||||||
version=3.0.2
|
version=3.0.2
|
||||||
revision=1
|
revision=1
|
||||||
_electron_version=10
|
_electron_ver=10
|
||||||
wrksrc="Rocket.Chat.Electron-${version}"
|
wrksrc="Rocket.Chat.Electron-${version}"
|
||||||
hostmakedepends="yarn nodejs-lts python3 pkg-config app-builder"
|
hostmakedepends="yarn nodejs-lts python3 pkg-config app-builder"
|
||||||
makedepends="electron${_electron_version} libvips-devel"
|
makedepends="electron${_electron_ver} libvips-devel"
|
||||||
depends="electron${_electron_version}"
|
depends="electron${_electron_ver}"
|
||||||
short_desc="Rocket.Chat Native Cross-Platform Desktop Application via Electron"
|
short_desc="Rocket.Chat Native Cross-Platform Desktop Application via Electron"
|
||||||
maintainer="John <me@johnnynator.dev>"
|
maintainer="John <me@johnnynator.dev>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -17,15 +17,20 @@ checksum=5ca518421dde4fbbf5f3b3b1904dd63562bc43f16bb9c169ffed07022033a0df
|
||||||
export USE_SYSTEM_APP_BUILDER=true
|
export USE_SYSTEM_APP_BUILDER=true
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
yarn upgrade electron@"$(</usr/lib/electron${_electron_version}/version)" --non-interactive
|
# 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
|
||||||
|
npm_config_arch=x64 \
|
||||||
|
yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
|
||||||
|
--non-interactive
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
yarn build
|
yarn build
|
||||||
yarn run electron-builder --linux --x64 --dir \
|
yarn run electron-builder --linux --x64 --dir \
|
||||||
-c.electronDist=/usr/lib/electron${_electron_version} \
|
-c.electronDist=/usr/lib/electron${_electron_ver} \
|
||||||
-c.electronVersion="$(</usr/lib/electron${_electron_version}/version)"
|
-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
vinstall "${FILESDIR}/Rocket.Chat-Desktop.desktop" 644 usr/share/applications
|
vinstall "${FILESDIR}/Rocket.Chat-Desktop.desktop" 644 usr/share/applications
|
||||||
|
|
Loading…
Reference in a new issue