fastn icon indicating copy to clipboard operation
fastn copied to clipboard

WIP fastn <package_name> command to launch a native window

Open siddhantk232 opened this issue 6 months ago • 8 comments

  • [x] launch an empty window
  • [x] download and save the package somewhere
  • [x] run fastn serve <package-name> in a background thread
  • [x] go to server url in the tauri window
  • [x] make mac .app
  • [ ] show kulfi url on fastn serve
  • [ ] change kulfi:// to fastn://
  • [x] compile to android
  • [ ] compile to windows
  • [ ] compile to ios
  • [ ] fix: cli help info is wrong
  • [ ] fix: cmd: fastn does not launch UI

siddhantk232 avatar Jul 01 '25 08:07 siddhantk232

fastn [OPTIONS] <package_name>

Should be:

fastn [OPTIONS] [<package_name>]

(<package_name> is optional, and defaults to lets-os). How do we update our help text to make this clear?

amitu avatar Jul 03 '25 08:07 amitu

I am focusing on running the current version as a GUI only app for mac and android. This part has a lot of unknowns (does fastn-core even compile for android/arm?) so it's better to do this first.

siddhantk232 avatar Jul 03 '25 09:07 siddhantk232

The android app is stil not working. It launches and shows the loading screen and the http server runs in the background. But, the server crashes with a stack overfllow when a request is received.

siddhantk232 avatar Jul 09 '25 13:07 siddhantk232

I guess it's the same issue or related to fastn not working in dev builds with stack overflow error. We really have to solve this someday. Not sure how to debug tho.

amitu avatar Jul 09 '25 15:07 amitu

I guess it's the same issue or related to fastn not working in dev builds with stack overflow error. We really have to solve this someday. Not sure how to debug tho.

Yes! After writing this comment I noticed that the tauri cli is building the crate in debug mode when I did cargo tauri android dev. There's a --release option, that'll probably work.

siddhantk232 avatar Jul 10 '25 04:07 siddhantk232

Can we find out if fastn works on Android?

amitu avatar Jul 10 '25 04:07 amitu

Can we find out if fastn works on Android?

It probably does, I have been able to run the http server with fastn serve till now. The release build requires that I sign the apk before it'll let me run it so I'm figuring that out right now.

siddhantk232 avatar Jul 10 '25 04:07 siddhantk232

Can we find out if fastn works on Android?

https://youtu.be/BT9QuvR48vc It's working :)

siddhantk232 avatar Jul 10 '25 07:07 siddhantk232