tauri-docs icon indicating copy to clipboard operation
tauri-docs copied to clipboard

Add guides or templates on how to publish to popular app stores

Open Benji377 opened this issue 2 years ago • 8 comments

📋 Explain your issue

Tauri is an interesting framework, as it seemingly connects two different programming languages (JavaScript and Rust). The issue is that this is very uncommon, and a lot of external tools and frameworks don't have dedicated guides or instructions on how to set them up with Tauri. Some of those are app stores, which are a great tool to spread awareness of your app, find new users and maybe potential contributors.

I am currently developing an antivirus using Tauri and Next.js. It currently has a decent amount of users and after just a couple of days, someone suggested publishing the app to Flathub and soon others followed with suggesting other app stores like Snapcraft or AppImageHub and Chocolatey. I did some research and tried to set them up, here are my results so far:

  • Chocolatey: Uploaded executable using this guide. Executable got flagged as malware and still awaiting moderators approval
  • Flathub: Unclear requirements and open discussion about Tauri having issues stopped me from trying it any further
  • Snapcraft: Really hard to set up, still testing. I am currently at more than 100 failed attempts
  • AppImage: A known bug prevents it from being uploaded: https://github.com/tauri-apps/tauri/issues/7736

I am sure if you are smart enough you are able to figure it out eventually, but for me, it's just very complicated to understand. I will keep on trying and see if I am able to achieve anything. If I do, I will try to remember to report back here.

Benji377 avatar Sep 15 '23 20:09 Benji377

We'll be covering this in a Distribute section. Tracking for 2.0.

simonhyll avatar Sep 15 '23 21:09 simonhyll

Thank you simon. I also have an update: I managed to publish my app on snapcraft

Benji377 avatar Sep 15 '23 21:09 Benji377

@Benji377 if you're interested in contributing a guide on any of these we'd love to have them! This would be the first guide in this area for the new Docs 2.0 effort so there may be a chunk of work on crafting the copy, but if there are any steps, observations, or notes you'd like to share we'd love to have them!

lorenzolewis avatar Sep 15 '23 22:09 lorenzolewis

My approach to creating a snap looked something like this:

  • Take a basic template for Rust snap
  • Add/Change a line
  • Commit the file to GitHub
  • Wait for the Snapcraft dashboard to pick it
  • Wait for the Build process to fail
  • Start again

For AppImage, I tested it, and it runs fine on Debian WSL2. Then the workflow failed when publishing it to the AppImage repository and with the help of another user that discovered the issue I created a PR to somewhat fix it: https://github.com/tauri-apps/tauri/pull/7843

For Chocolatey, I basically removed all the PowerShell scripts to avoid having to write any install or setup steps, and it magically worked. Then the executable got flagged as malware, probably because I forgot to sign it.

All I am saying is that I would really like to write guides on this for Tauri, I love contributing to this project, but my methods of reaching the goal are not very professional and might not be suitable for other applications/projects

Benji377 avatar Sep 16 '23 10:09 Benji377

but my methods of reaching the goal are not very professional

@Benji377 don't worry about that at all, if you throw something together based on your working approach we can look into it together to make it professional 🙂

simonhyll avatar Sep 16 '23 15:09 simonhyll

Ok sure then. Where should I write it? Should I open a PR?

Benji377 avatar Sep 16 '23 16:09 Benji377

@Benji377 Sorry for slow reply, been very busy. You can write it as a sub article for the deployment guide perhaps? We're still figuring out the exact formatting of the guides, gotta wait for Lorenzo to get back from his vacation before we do too big changes to that part. But if you write an article somewhere in the docs we can worry about exact placement and changing formatting later, just try to get all the information into a markdown file and we'll figure out where it should go later. 😄

simonhyll avatar Sep 29 '23 12:09 simonhyll

No worries, I had a lot to do for university too. I finally wrote a rough outline together and opened a PR

Benji377 avatar Nov 11 '23 17:11 Benji377