Compare commits

..

3 Commits

Author SHA1 Message Date
1d645146db 2.7.0 2021-12-28 17:57:13 +01:00
f859d52d33
Merge pull request #3 from Noir-/patch-1 2021-12-28 12:07:24 +01:00
threa4ctor
166b0f8481
make sure npm is available in the env when building
There was the proper environment missing in the build() routine when npm wasn't installed globally. This led the build fail because `npm` could not be found. Calling getnvm to source the NVM env fixes it.
2021-12-23 17:57:53 +01:00
3 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
pkgbase = tidal-hifi-git pkgbase = tidal-hifi-git
pkgdesc = The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm pkgdesc = The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm
pkgver = 2.6.0.r0.g0dec967 pkgver = 2.7.0.r0.gd51d5cd
pkgrel = 1 pkgrel = 1
url = https://github.com/Mastermindzh/tidal-hifi url = https://github.com/Mastermindzh/tidal-hifi
arch = x86_64 arch = x86_64

3
.gitignore vendored
View File

@ -3,4 +3,5 @@
!.SRCINFO !.SRCINFO
!package.json !package.json
!PKGBUILD !PKGBUILD
!tidal-hifi-desktop !tidal-hifi.desktop
!src/tidal-hifi.desktop

View File

@ -2,7 +2,7 @@
pkgname=tidal-hifi-git pkgname=tidal-hifi-git
pkgrel=1 pkgrel=1
pkgver=2.6.0.r0.g0dec967 pkgver=2.7.0.r0.gd51d5cd
pkgdesc="The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm" pkgdesc="The web version of listen.tidal.com running in electron with hifi support thanks to widevine. If the install fails use nvm to temporarily downgrade npm"
arch=(x86_64) arch=(x86_64)
url="https://github.com/Mastermindzh/tidal-hifi" url="https://github.com/Mastermindzh/tidal-hifi"
@ -26,6 +26,7 @@ getnvm() {
if test -f "/usr/share/nvm/init-nvm.sh" if test -f "/usr/share/nvm/init-nvm.sh"
then then
echo "found init-nvm.sh in /usr/share/nvm, sourcing..." echo "found init-nvm.sh in /usr/share/nvm, sourcing..."
unset npm_config_prefix
source "/usr/share/nvm/init-nvm.sh" source "/usr/share/nvm/init-nvm.sh"
else else
echo "nvm could not be found, installing" echo "nvm could not be found, installing"
@ -60,6 +61,8 @@ prepare() {
} }
build() { build() {
getnvm
cd "${srcdir}/${pkgname%-git}" cd "${srcdir}/${pkgname%-git}"
# We are not using the systems Electron as we need castlab's Electron. # We are not using the systems Electron as we need castlab's Electron.