Page 1 of 1
Tauri support
Posted: Thu Dec 21, 2023 9:59 am
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

Re: Tauri support
Posted: Thu Dec 21, 2023 10:01 am
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
Re: Tauri support
Posted: Thu Dec 21, 2023 2:27 pm
by plouf
whats the advantage over cordova, which already supported for android/ios, cordova CAN build win8.1+ and osx apps too
Re: Tauri support
Posted: Thu Dec 21, 2023 6:32 pm
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.
Re: Tauri support
Posted: Thu Dec 21, 2023 7:23 pm
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

Re: Tauri support
Posted: Thu Dec 21, 2023 9:52 pm
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:
