Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Desktop Platform Support #11

NathanaelA started this conversation in 1. Ideas & Discussions
Dec 3, 2020 · 5 comments · 6 replies
Discussion options

One of the largest requested feature over NativeScript life has been Desktop support.

Bundyo created a basic prototype using NodeGui since this project actually support Linux, Mac and Windows and used QT for its display, and allows packing into a final executable.

I believe it is one of directions to proceed to create a method to create Gui apps in NativeScript for the Desktop. If we can make a NS-Core app fully compatible, the other flavors should be able to work with minor to zero changes as all of them use the core pieces. Unfortunately NodeGui is still early in its life cycle and might require changes to NodeGui.

The other possibility it to use Tauri, or Neutralino it supports Linux, Mac, Windows native Executable; but offers some functionality that NodeGui does not, if we were to go the Tauri route, we could probably technically support pure HTML/web target for all flavors in addition.

Tauri is rust based and its runtime is very small, making it a awesome candidate.
Neutralino is C++ based and its runtime is very small also.

Relevant links prototype code:

Node Gui & Tauri

Please add 👍 if you want to see this, not me to comments. I would like to keep the discussion to debating which of the two directions to go, and/or people who actually want to help build this.

You must be logged in to vote

Replies: 5 comments · 6 replies

Comment options

Hi @NathanaelA

Yes, it would be a massive feature to have. Completely agree with you.

You must be logged in to vote
0 replies
Comment options

I've wished for this for a while now! 😎👍
It would also be cool if nativescript was able to utilise mac catalyst.

You must be logged in to vote
2 replies
@rigor789
Comment options

The runtime technically can (v8) - but we have not experimented with it...

The required libs are built for maccatalyst:

@7ammer
Comment options

Cool! I'll give this a try if my project allows it :)

Comment options

I bet this is a unpopular opinion, but I don't think we should support desktop platform for now. The NS team has already a lot on their plate with the mobile platforms. Updating Core for almost every major release of Android and iOS, making sure the CLI works with the newest Xcode version and MacOS, helping with all the plugins having deprecated code, keeping track on policy changes to App Store and Google Play that requires code changes, and so on. This is just some example of tasks that needs to be done for NS to survive, but I'm sure we want NS to thrive as well. I love NS, but the condition it is in today requires a lot of hacks and workarounds to make things work. Ironing out these things, and further develop for the mobile platform (like a working app sync #35) is in my opinion much more important. Then we can consider adding desktop platform support when it won't affect the mobile platforms negatively.

You must be logged in to vote
3 replies
@buu700
Comment options

I brought this up in another thread, but a good middle ground could be just building web support in lieu of native desktop support, which would essentially act as a catch-all for any current or future unsupported platforms via Electron/Cordova.

@farfromrefug
Comment options

I agree 100% but i also think if someone wants to "join" the team and start working on this, they would be welcome to do so. This is how vue or svelte happened in N.

@vallemar
Comment options

I agree 100% @asharghi, a while ago I commented something like this in the general discord thread. I think that before something like this, NS needs to stabilize all the errors that you comment, webpack, core, debug, plugins ... I think stabilizing it is very important since as you say: tricks and errors usually do not tell us and new people arrive and as you see an error goes away. That said, I love NS and I want it to prosper and the most important thing now, I think it should be to solve everything.

@farfromrefug I would love to join the team but it is very difficult, I do not have a deep knowledge of NS and much less of iOS, I think this is a problem for new collaborators.

That is my opinion, once everything is corrected, go ahead with the desktop

Comment options

Even If desktop is not the priority, I would say that this can be valuable for many IoT devices running GNU/Linux.

Relate-to: NativeScript/NativeScript#27 (comment)

You must be logged in to vote
0 replies

This comment was marked as disruptive content.

@Jordan-Hall
Comment options

@NathanaelA is this something thats being actively worked on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
10 participants
Converted from issue

This discussion was converted from issue #11 on December 08, 2020 17:41.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.