chore: use the generic electron package

This commit is contained in:
Rudra Saraswat 2023-06-24 22:47:23 +10:00
parent 1b8f8703c6
commit 4b7339e70f

View file

@ -4,12 +4,11 @@ pkgbase=blend-git
pkgname=('blend-git' 'blend-settings-git') pkgname=('blend-git' 'blend-settings-git')
pkgver=r50.2e0016f pkgver=r50.2e0016f
pkgrel=1 pkgrel=1
_electronversion=22
pkgdesc="A package manager for blendOS" pkgdesc="A package manager for blendOS"
arch=('x86_64' 'i686') arch=('x86_64' 'i686')
url="https://github.com/blend-os/blend" url="https://github.com/blend-os/blend"
license=('GPL3') license=('GPL3')
makedepends=("electron${_electronversion}" 'git' 'npm' 'base-devel') makedepends=("electron" 'git' 'npm' 'base-devel')
source=('git+file://[BASE_ASSEMBLE_PATH]/projects/blend' source=('git+file://[BASE_ASSEMBLE_PATH]/projects/blend'
'blend-settings.desktop' 'blend-settings.desktop'
'blend-settings' 'blend-settings'
@ -33,8 +32,8 @@ build() {
cd "${srcdir}/${pkgbase%-git}/${pkgbase%-git}-settings" cd "${srcdir}/${pkgbase%-git}/${pkgbase%-git}-settings"
npm config set cache "${srcdir}/npm-cache" npm config set cache "${srcdir}/npm-cache"
export NODE_ENV=production export NODE_ENV=production
electronDist="/usr/lib/electron${_electronversion}" electronDist="/usr/lib/electron"
electronVer="$(sed s/^v// /usr/lib/electron${_electronversion}/version)" electronVer="$(sed s/^v// /usr/lib/electron/version)"
npm run icons npm run icons
npm run pack -- -c.electronDist=${electronDist} \ npm run pack -- -c.electronDist=${electronDist} \
-c.electronVersion=${electronVer} --publish never -c.electronVersion=${electronVer} --publish never