Porting Joplin to FreeBSD

Joplin is an open source alternative to Evernote. It can be used with on-premise backend or with their own cloud storage.
The killer-feature for me is the possibility to use Nextcloud as a backend (only as a backend, without a possibility to edit notes).

The desktop application is Electron based.
After some tweaks I could build and run it with Electron 39.2.7 installed from ports:

joplin-screenshot.jpg


Unfortunately, my experience in JavaScript and Electron is limited, so I'm not able to build the port correctly, with the necessary tweaks correctly integrated. I hope, someone with such experience will create the correct port.
 
Interestingly, "Joplin" is the name of the main town near where I grew up. No relation to the musician Scott Joplin, from whom this app is named. The name alone, and the fact that people have been able to get it running on FreeBSD has piqued my interest, but I have been deterred by the Electron process. Could you share some of your experiences building and installing Electron, and what tweaks you needed to do to get Joplin running?
 
Could you share some of your experiences building and installing Electron, and what tweaks you needed to do to get Joplin running?
Nothing special, just installing Electron from ports, then downloading the last release of Joplin from their Github (sources). Then I was following the procedure that I found here solving the problems with npm packages (OK, I used yarn and not npm as it was the package manager used by Joplin devs). I needed to solve some problems with absent native binaries (I installed them from FreeBSD packages and copied to npm modules dirs). Globally, nothing special, but many manual operations that I cannot replicate inside port build. So, probably, the build system needs some tweaking to avoid these operations.
 
Electron ports require too much patience and power to maintain I think. Electron is such a beast that my machine could build it in over 10 hours and even maybe not. Also I don't know how to include the npm dependencies into the port, I guess you need to have some storage on freebsd.org to host some files. I saw that it has Linux distribution packages like .Deb or tar.xz, maybe a Linux port can be made but not everything is 100% possible as far as I saw.
 
Back
Top