julian-klode / dns66

DNS-based Host Blocker (and lightweight ad blocker) for Android
https://jak-linux.org/projects/dns66/
GNU General Public License v3.0
2.11k stars 200 forks source link

Self-update support for github apks #41

Open julian-klode opened 7 years ago

julian-klode commented 7 years ago

One of the things I hear from time to time is a wish for the apks on github to include self-updating support. Currently, I am completely not setup for that: The apks here, just like the ones on my personal f-droid repo at http://jak-linux.org/fdroid/repo are built by fdroid (I just manually upload the apks here).

That said, it's something to keep in mind.

markhaehnel commented 7 years ago

Take a look at this: https://github.com/javiersantos/AppUpdater

MaluNoPeleke commented 7 years ago

Would be great to be at least notified within the app about updates

julian-klode commented 7 years ago

@MaluNoPeleke Ehm, yes. If you use the apks on github. I have not tried building different configurations of Android apps yet, and I certainly would not want that kind of thing to be part of the f-droid builds.

julian-klode commented 7 years ago

My plan here is to setup a github flavour, and then start building that github flavor on travis, essentially replacing the current semi-automatically built binaries. This will have the huge advantage of not being built by me personally, but in a central location (travis already builds all the stuff, it just does not sign and upload it yet).

The update check would run in the same job as the host file refresh from #2 I think, most likely daily by default, but likely configurable. I wonder if it makes sense to split it into its own job, but that probably just complicates the UI to much, so I'll probably just go with a "Automatically check for updates and refresh host files every " option.