Package Details: ferdi 5.4.1_beta.4-1

Git Clone URL: https://aur.archlinux.org/ferdi.git (read-only, click to copy)
Package Base: ferdi
Description: Ferdi is a messaging browser that allows you to combine your favorite messaging services into one application.
Upstream URL: https://getferdi.com/
Licenses: Apache
Conflicts: ferdi-git
Submitter: AG_Caesar
Maintainer: AG_Caesar
Last Packager: AG_Caesar
Votes: 5
Popularity: 1.54
First Submitted: 2019-09-25 13:30
Last Updated: 2020-01-01 15:34

Latest Comments

lsf commented on 2019-12-15 16:30

Looks like it's just missing the git submodules.

This should work:

(/edit: fixed the patch, didn't apply cleanly)

diff --git a/PKGBUILD b/PKGBUILD
index 496380c..3205afe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=ferdi
 _pkgver="5.4.1-beta.2"
 # use beta because of electron 7 compatibility
 pkgver=${_pkgver//-/_}
-pkgrel=1
+pkgrel=2
 pkgdesc='Ferdi is a messaging browser that allows you to combine your favorite messaging services into one application.'
 arch=(x86_64 i686)
 url='https://getferdi.com/'
@@ -15,10 +15,16 @@ license=(Apache)
 depends=(electron)
 conflicts=('ferdi-git')
 makedepends=(expac git npm python2)
+_recipes=ecf037c
+_server=cca6cd9
 source=("git+https://github.com/getferdi/$pkgname#tag=v$_pkgver"
+        "git+https://github.com/getferdi/recipes#commit=${_recipes}"
+        "git+https://github.com/getferdi/internal-server#commit=${_server}"
         'ferdi.desktop'
         'ferdi.sh')
 sha512sums=('SKIP'
+            'SKIP'
+            'SKIP'
             'SKIP'
             'SKIP')

@@ -27,8 +33,12 @@ prepare() {
   mkdir python2_path
   ln -s `which python2` python2_path/python

-  # Small patching
   cd ferdi
+  git submodule init
+  git config submodule.recipes.url $srcdir/recipes
+  git config submodule.src/internal-server.url $srcdir/internal-server
+
+  git submodule update --init --recursive

   # Prevent ferdi from being launched in dev mode
   sed -i "s|export const isDevMode = .*|export const isDevMode = false;|g" \
@@ -37,13 +47,19 @@ prepare() {
     src/index.js

   # Adjust the electron version to use when building
-  # electron_version="`expac %v electron4 | cut -d'-' -f1`"
-  # sed -i "s|\(\s\+\"electron4\":\).*,|\1 \"$electron_version\",|" package.json
+  electron_version="`expac %v electron | cut -d'-' -f1`"
+  sed -i "s|\(\s\+\"electron\":\).*,|\1 \"$electron_version\",|" package.json
+
+  # Better configuration for npm cache and calling installed binaries
+  export npm_config_cache="$srcdir"/npm_cache
+  export PATH="$srcdir/$pkgname/node_modules/.bin:$srcdir/python2_path:$PATH"

   # Adjust node-sass version to avoid build issues
-  npm install "node-sass@4.12.0"
+  npm install "node-sass@4.13.0"

   # Prepare the packages for building
+  npm install lerna
+  lerna bootstrap
 }

 build() {
@@ -53,9 +69,6 @@ build() {
   export npm_config_cache="$srcdir"/npm_cache
   export PATH="$srcdir/ferdi/node_modules/.bin:$srcdir/python2_path:$PATH"

-  npm install lerna
-  lerna bootstrap
- 
   gulp build
   electron-builder --linux dir
 }
diff --git a/ferdi.sh b/ferdi.sh
index 3e1eb77..1e01e72 100644
--- a/ferdi.sh
+++ b/ferdi.sh
@@ -1,3 +1,3 @@
 #!/bin/sh

-electron4 /usr/lib/ferdi/resources/app.asar "$@"
+electron /usr/lib/ferdi/resources/app.asar "$@"

connexion2000 commented on 2019-12-11 15:28

Unfortunatelly, it didn't help. Still same error.

AG_Caesar commented on 2019-12-11 13:57

Can you please try again? I think I fixed the error with the electron version

connexion2000 commented on 2019-12-11 13:26

I'm on arch, building using yay. Clean build also giving this error.

infinitnet commented on 2019-12-11 13:24

Electron is on 7.1.3

AG_Caesar commented on 2019-12-11 13:06

I do not know about the manjaro packages.. is electron on version 7? Yaourt is unsupported and shout not be used neither on manjaro nor on arch...

infinitnet commented on 2019-12-11 13:05

I'm on Manjaro and use yaourt and yeah, tried a clean build without luck and switched to ferdi-bin for now, which works fine.

AG_Caesar commented on 2019-12-11 13:04

It builds perfectly for me... what do you use? Did you try a clean build with yay?

infinitnet commented on 2019-12-11 10:56

$ ferdi App threw an error during load Error: Cannot find module '../../internal-server/start' at Module._resolveFilename (internal/modules/cjs/loader.js:584:15) at Function.Module._resolveFilename (/usr/lib/electron4/resources/electron.asar/common/reset-search-paths.js:43:12) at Function.Module._load (internal/modules/cjs/loader.js:510:25) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/usr/lib/ferdi/resources/app.asar/electron/ipc-api/localServer.js:1:355) at Object.<anonymous> (/usr/lib/ferdi/resources/app.asar/electron/ipc-api/localServer.js:2:3) at Module._compile (internal/modules/cjs/loader.js:693:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10) at Module.load (internal/modules/cjs/loader.js:602:32) A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module '../../internal-server/start' at Module._resolveFilename (internal/modules/cjs/loader.js:584:15) at Function.Module._resolveFilename (/usr/lib/electron4/resources/electron.asar/common/reset-search-paths.js:43:12) at Function.Module._load (internal/modules/cjs/loader.js:510:25) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/usr/lib/ferdi/resources/app.asar/electron/ipc-api/localServer.js:1:355) at Object.<anonymous> (/usr/lib/ferdi/resources/app.asar/electron/ipc-api/localServer.js:2:3) at Module._compile (internal/modules/cjs/loader.js:693:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10) at Module.load (internal/modules/cjs/loader.js:602:32)

connexion2000 commented on 2019-12-10 15:58

Unfortunatelly doesn't work after update: App threw an error during load Error: Cannot find module '../../internal-server/start' at Module._resolveFilename (internal/modules/cjs/loader.js:584:15) at Function.Module._resolveFilename