Toinane / colorpicker

A mininal but complete colorpicker desktop app
https://colorpicker.fr
GNU General Public License v3.0
1.62k stars 120 forks source link

Auto Update mechanism #47

Open rluvaton opened 5 years ago

rluvaton commented 5 years ago

Maybe this application can add auto-update mechanism for always be at the latest version

Toinane commented 5 years ago

Yep, it would be great too!

rluvaton commented 5 years ago

@Toinane I'm on fire! 🔥

Toinane commented 5 years ago

@Toinane I'm on fire! 🔥

I see that 😄

rluvaton commented 5 years ago

@Toinane I'm on fire! 🔥

I see that 😄

Speaking of which, look at the new proposal I add #49

Toinane commented 4 years ago

Actually, this feature need to have a paid Apple Account (99$/year) and a License for Windows (min 100$) to make Colorpicker approved for auto-update. For Linux, I need to investigate more :

rluvaton commented 4 years ago

Actually, this feature need to have a paid Apple Account (99$/year) and a License for Windows (min 100$) to make Colorpicker approved for auto-update. For Linux, I need to investigate more :

  • Snapcraft autoupdater (maybe possible, you can update from command line for now)
  • AppImage updater (need more investigation)

I have an idea of how to implement it yourself...

You can create script that:

  1. check if you have updates in GitHub release
  2. download the application to some temp folder (new-version-temp)
  3. Create a copy of the application in other temp folder (prev-version-temp)
  4. Delete the application (In current-install-dir)
  5. Move the new application from new-version-temp folder to the default installation directory (current-install-dir)

    In case of an error, restore the previous version from prev-version-temp

  6. Delete the new-version-temp
  7. (Bonus) When the user open the app give him an opportunity to downgrade the app
Toinane commented 4 years ago

Yeah why not, but it takes a lot of effort on the different platforms. I'll see if I can do that for the next release!

I hope this is possible without asking for administrator access for Windows or Mac

rluvaton commented 4 years ago

Yeah why not, but it takes a lot of effort on the different platforms. I'll see if I can do that for the next release!

I hope this is possible without asking for administrator access for Windows or Mac

Take a look at Google Ohama tutorial (I think this is how the seamless updates in Google Chrome work)