sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
611 stars 54 forks source link

Your ClickOnce Experience? #160

Open fabsenet opened 2 years ago

fabsenet commented 2 years ago

Hi,

I noticed you are using ClickOnce for hass-workstation-service. I am the owner of adrilight and I am using Squirrel. Can you tell me, what is your experience with click once so far?

Squirrel seems slow on issue fixing lately and does not really support .net 5/6.

sleevezipper commented 2 years ago

Hi!

Honestly, it hasn't been too great. Creating new releases has been quite finicky and needs some manual tweaking every single time. I think ClickOnce is more tailored to businesses wanting to deploy internal applications.

From a user's perspective it's quite alright. It just shows a loader and a prompt to update every time you start the app. It handles framework installs nicely.

This was my first experience with a desktop app and installer so it may not be the most nuanced answer to your question. I looked at Squirrel as well but the complexity was too much for me at the time.

Hope that helps!

anaisbetts commented 2 years ago

Hi, I'm the author of Squirrel. Indeed, the current version doesn't have native support for .NET Core and friends, but actually it's fairly easy to work around this. Here's some example code:

https://gist.github.com/anaisbetts/9015f33a95c523a133bb624e3c77213d

We basically follow the steps for a non-C# application and run Update.exe to ask it to update. If all you want is to update your app silently in the background, this can be done pretty easily. Let me know if I can help with setting up Squirrel as an installer, I use HASS Workstation Service and ofc would also be very happy for it to have a reliable updater! 😅