Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FreeBSD support to electron #3797

Open
ghost opened this issue Dec 12, 2015 · 146 comments
Open

Add FreeBSD support to electron #3797

ghost opened this issue Dec 12, 2015 · 146 comments

Comments

@ghost
Copy link

ghost commented Dec 12, 2015

Bountysource

Related: #2452

@zcbenz
Copy link
Member

zcbenz commented Dec 14, 2015

As mentioned in #2452, currently we don't have any plan to add support for FreeBSD, but if anyone is interested in sending a pull request, we will be very happy to accept it.

@zcbenz zcbenz closed this as completed Dec 14, 2015
@ghost
Copy link
Author

ghost commented Dec 14, 2015

Hi @zcbenz,

Could you please keep this open? I opened the request and added a bounty to encourage someone to send in a PR adding in FreeBSD support.

Thank you,
Teran

@zcbenz
Copy link
Member

zcbenz commented Dec 15, 2015

Okay.

@yonas
Copy link

yonas commented Jun 4, 2016

I'm getting close to compiling electron on FreeBSD 10.3.

I have two errors standing in my way:

https://gist.github.com/yonas/06d08aa591e4a452b16c1e9a9ac5e0f3

but I'm not sure how to fix them. Any C/C++ gurus here? :)

@ghost
Copy link

ghost commented Aug 24, 2016

I see that $200 USD has been added to the bounty? Is this going to happen? I think it will rock if it does.

@yonas
Copy link

yonas commented Aug 25, 2016

Sorry, I'll try to spend more time on this. If anyone knows C/C++ very well, there are Linux specific parts that need to be re-implemented for FreeBSD.

Yes, Electron is becoming more popular and being used in more apps than just the Atom editor. I'd love to have the Black Screen terminal running on my FreeBSD machine.

@prash-wghats
Copy link

Was able to build electron and VSCode in freebsd11RC1. the build instruction is posted in
https://gist.github.com/prash-wghats/89be1ee069d2acf23c289e9c606616e1

@yonas
Copy link

yonas commented Oct 12, 2016

@prash-wghats Great work!!! I'm curious, why did you compile with VSCode? Is there anything that GCC or CLANG is missing?

@ilundhild
Copy link

This is awesome. Can't wait to try it out, and would love to see those changes moved forward.

@enlight
Copy link
Contributor

enlight commented Oct 12, 2016

@yonas @prash-wghats didn't build using VSCode, he built Electron & VSCode.

@prash-wghats
Copy link

@yonas Thanks. Built electron using clang, then used it to run VSCode.

@grahamperrin

This comment has been minimized.

@patrickalima98
Copy link

patrickalima98 commented Jun 7, 2017

Hello electron team, my compliments!!!! First I would like to congratulate you on the project and also leave here my desire as well as many others to see the electron running in the FresBSD, your application is very impressive and it would be great if you could add support to FreeBSD I very much enjoyed the platform and it would enable the BSDS systems to leverage enabling the creation of incredible apps.

@nomadlogic
Copy link

Any chances of the patches referenced by prash-wghats commented on Oct 12, 2016 will be incorporated upstream? Are their blockers preventing this from happening, or anything the FreeBSD community can do to usher this along?

@prash-wghats
Copy link

https://github.com/prash-wghats/VSCode-For-FreeBSD/releases.
This binaries were built with freebsd 11.

@tcdude
Copy link

tcdude commented Mar 19, 2021

I upped the bounty on this a bit.. not sure if it will help spark some more interest in this...

@michaellee8
Copy link

michaellee8 commented May 17, 2021

Are anyone working on this issue yet? This one looks like interesting to me, especially with the bounty. So is the requirement to have FreeBSD as a target aviliable?

@zcbenz Can you tell us if this issue (also the bounty) is still open or has been already resolved?

@kreinholz
Copy link

I think this issue should be closed, as electron12 has arrived in the Ports tree:

https://www.freshports.org/devel/electron12/

I'm personally running electron v.12.0.7 on FreeBSD 13.0 amd64, and vscode v.1.45.0 at least builds and runs just fine on this system. I can't speak to other architectures, but on amd64 at least Electron on FreeBSD is a reality.

@michaellee8
Copy link

I think this issue should be closed, as electron12 has arrived in the Ports tree:

https://www.freshports.org/devel/electron12/

I'm personally running electron v.12.0.7 on FreeBSD 13.0 amd64, and vscode v.1.45.0 at least builds and runs just fine on this system. I can't speak to other architectures, but on amd64 at least Electron on FreeBSD is a reality.

I believe this should be closed then, maybe the author of the freebsd patch himself should go and collect his well deserved bounty

@emaste
Copy link

emaste commented May 20, 2021

There are currently 996 patch files in the FreeBSD devel/electron12 port; it would be very beneficial for long-term maintenance to get as much of this upstreamed as possible.

@thenexxuz-zz
Copy link

I personally do not think it should be closed because you cannot build on one of the other OSs targeting BSD, which I believe was the original intent of this, and the reason why I contributed to the bounty.

@dariusc93
Copy link

What would be needed to start getting some patches brought upstream?

@dmilith
Copy link

dmilith commented Jul 23, 2021

Would be great to get official support from the project for 4th biggest open-source system…

@probonopd
Copy link

The lack of official FreeBSD support in Electron seems to be holding back an official Session client from FreeBSD.
It gives the (incorrect?) impression that "Electron is not supported on FreeBSD", even though there is a port which suggests that it technically works.

@thenexxuz-zz
Copy link

Remember the point of this issue is not to be able to build Electron on BSD, rather the ability to build a BSD version of your app on a different platform.

On MacOS you can build a Windows version and a Linux version of your app.
On Windows you can build a Linux version and a MasOS version of your app.
On Linux you can build a MacOS version and Windows version of your app.

I donated to this so that ANY OS can build a BSD version of their app.

@xliiv
Copy link

xliiv commented Aug 3, 2021

Remember the point of this issue is not to be able to build Electron on BSD, rather the ability to build a BSD version of your app on a different platform.

On MacOS you can build a Windows version and a Linux version of your app.
On Windows you can build a Linux version and a MasOS version of your app.
On Linux you can build a MacOS version and Windows version of your app.

Could anyone put it into the issue desc, then (i can't due to lack of permissions)

@grahamperrin
Copy link

Could anyone put it into the issue desc …

@electron-triage | @electron ▲ merci

@ghost
Copy link

ghost commented Mar 20, 2022

Greetings! There is already a port of Electron for FreeBSD (https://github.com/tagattie/FreeBSD-Electron) by @tagattie

@probonopd
Copy link

Electron is in FreeBSD Ports now:
https://www.freshports.org/devel/electron13/

But FreeBSD is not supported by Electron in electron-builder etc. if I understand it correctly. Or how does one build an Electron app targeting FreeBSD?

@TZubiri
Copy link

TZubiri commented Apr 28, 2022

Remember the point of this issue is not to be able to build Electron on BSD, rather the ability to build a BSD version of your app on a different platform.

On MacOS you can build a Windows version and a Linux version of your app. On Windows you can build a Linux version and a MasOS version of your app. On Linux you can build a MacOS version and Windows version of your app.

I donated to this so that ANY OS can build a BSD version of their app.

How quaint. I don't use electron or FreeBSD, but my understanding was that electron app are just local websites run on an (statically linked?) (chromium?) browser, so the objective here would be to "simply" bundle the html, js and css files and make sure that freebsd opens those with the browser?

Seems more than doable.

@HolgerJeromin
Copy link

How quaint. I don't use electron or FreeBSD, but my understanding was that electron app are just local websites run on an (statically linked?) (chromium?) browser, so the objective here would be to "simply" bundle the html, js and css files and make sure that freebsd opens those with the browser?

Electron is much more than a lightweight browser. It has many JS APIs which allows native integration (file access, systray icon, custom API of the integrator, window chrome aka no address bar and more) which must not be available (on purpose) with any random, untrusted website.

@thenexxuz
Copy link

Electron is in FreeBSD Ports now: https://www.freshports.org/devel/electron13/

But FreeBSD is not supported by Electron in electron-builder etc. if I understand it correctly. Or how does one build an Electron app targeting FreeBSD?

That is the point of this issue. Have BSD as a target so that while on any of the other OSs, you can build a BSD version of your app.

@rilysh
Copy link

rilysh commented Nov 18, 2022

I found several people were successfully able to build electron on FreeBSD but pretty much in hacky way, and several third-party build I was able to find, but most of them are quite outdated.

Seems there are no hope at all #36325 (comment), until FreeBSD gets a wide range of users, well macOS contains a lot of FreeBSD code, yet Electron just never give native support for FreeBSD and to be honest, this time probably porting GNU/Linux version of Electron for FreeBSD would be *best* choice so far.

@probonopd
Copy link

probonopd commented Nov 18, 2022

Visual Studio Code - Open Source ("Code - OSS") is a thing. And it works nicely on FreeBSD. It uses https://www.freshports.org/devel/electron18/.

image

@rilysh
Copy link

rilysh commented Nov 22, 2022

Here, I'm not talking about ports, I know electron port exist for FreeBSD, however, my main intention is officially support thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests