Tauri support

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Tauri support

Post by jamirokwai »

Hi there,

just stumbled over Tauri https://tauri.app. It's a tool to pack web-apps like the ones from SpiderBasic into "native" Apps.

I don't want to discuss the why. And yes, I know PureBasic (and love it).
There are cases, when putting a website inside a native app has several advantages.

It would be a great addition to SpiderBasic. Of course, depending on the amount of work :-)
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Re: Tauri support

Post by jamirokwai »

I coded a container for MacOS and iOS a while back doing something similar. It is mostly untested and more like a proof of concept.

https://github.com/foodsnacker/htmlfive-container
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: Tauri support

Post by plouf »

whats the advantage over cordova, which already supported for android/ios, cordova CAN build win8.1+ and osx apps too
Christos
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Tauri support

Post by Peter »

Tauri requires Rust to be installed. I don't like that very much. The system also seems to me to be more extensive and complicated than it should be.

I would rather recommend the lightweight Neutralinojs.
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Re: Tauri support

Post by jamirokwai »

Thanks for your answers!
plouf wrote: Thu Dec 21, 2023 2:27 pm whats the advantage over cordova, which already supported for android/ios, cordova CAN build win8.1+ and osx apps too
I couldn't get it to work before, will try again after christmas.
How big is the smallest possible binary with cordova?
Peter wrote: Thu Dec 21, 2023 6:32 pm Tauri requires Rust to be installed. I don't like that very much. The system also seems to me to be more extensive and complicated than it should be.

I would rather recommend the lightweight Neutralinojs.
I will have a look into Neutralinojs, but don't want to install another build system. Already have plenty of them :-/

I posted my MacOS/iOS-solution above, which comes in at less than a mb. Actually, these may be coded for Android, Linux, Windows as well.
Maybe there is even less code necessary, if you just add a WebGadget in a PureBasic-App and display the website this way. But I doubt, all things created with Spiderbasic will run well inside a mere WebGadget.

-> maybe, an admin can move this to the appropriate section. Feature Request is a bit too much for this, thanks :-)
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Tauri support

Post by Peter »

jamirokwai wrote: Thu Dec 21, 2023 7:23 pmI will have a look into Neutralinojs, but don't want to install another build system. Already have plenty of them :-/
Yes, of course that's your decision. I just wanted to point out that NeutralinoJs is, in my humble opinion, a simpler system than Tauri.

Here are the file sizes with a HelloWord sample code in SpiderBasic:
Image
Post Reply