summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2021-10-10 12:39:32 -0600
committerMark Wagie2021-10-10 12:39:32 -0600
commite0bbce3257d75eda35408a0a7b7aeb4804592d3e (patch)
treedd0e6733b81ba0b7e04ff50cf10ae2a71766d29a
parentd584b19839078edd98f15438bafd3ff156b7a76f (diff)
downloadaur-e0bbce3257d75eda35408a0a7b7aeb4804592d3e.tar.gz
improve build
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 9 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2941e897285..8e85fb33885 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gmail-desktop
pkgdesc = Unofficial Gmail desktop app
pkgver = 2.25.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/timche/gmail-desktop
arch = x86_64
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index fa255abbc16..a037f3eec3a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=gmail-desktop
pkgver=2.25.3
-pkgrel=4
+pkgrel=5
pkgdesc="Unofficial Gmail desktop app"
arch=('x86_64')
url="https://github.com/timche/gmail-desktop"
@@ -35,15 +35,19 @@ prepare() {
sed -i '/husky/d' package.json
_ensure_local_nvm
- nvm install 14.17.6
+ nvm install 14.18.0
}
build() {
cd "$pkgname-$pkgver"
_ensure_local_nvm
- yarn install --cache-folder "$srcdir/yarn-cache"
+ electronDist=/usr/lib/electron12
+ electronVer=$(sed s/^v// /usr/lib/electron12/version)
+ yarn config set cache-folder "$srcdir/yarn-cache"
+ yarn install
yarn compile
- ./node_modules/.bin/electron-builder --linux dir
+ ./node_modules/.bin/electron-builder --linux --x64 --dir \
+ $dist -c.electronDist=$electronDist -c.electronVersion=$electronVer
}
package() {