atmosphere-updater icon indicating copy to clipboard operation
atmosphere-updater copied to clipboard

[Feature Request] Use splGetConfig(); to get Atmosphere version

Open moldimolt opened this issue 4 years ago • 5 comments

Under Atmosphere, splGetConfig(); will return Atmosphere version and commit hash. This would allow atmosphere-updater to detect whether Atmosphere is up to date or not and tell the user if they try to update. For hekate I don't believe an equivalent solution exists, perhaps you could store a hash list of hekate releases and check the SHA256 hash of /bootloader/update.bin and see if it matches any known hashes.

moldimolt avatar Sep 23 '19 23:09 moldimolt

Thanks! I was meaning to add this to the previous release, just didn’t have enough time sadly (wanted to push full support for hekate first). I’ll try and this tomorrow, thank you again for the suggestion!

ITotalJustice avatar Sep 24 '19 00:09 ITotalJustice

No problem! Thanks! If you plan to add this to hekate as well in the way I described, here's every CTCaer hekate.bin SHA256 hash (could do this on the fly for future releases and store in /switch/atmosphere-updater/hashes.txt or similar):

902cadfd3fde3e8dadcaa83364ecb7129b9b2d23e72385c535006ed2551c6034 *hekate_ctcaer_1.5.1.bin
cde641d61cd65cd5780c4973b97ec9451f767fe0885dbd9bb62aac1c34be58ff *hekate_ctcaer_1.5.bin
10ca02aa05a4bbbdae0d87d6c972e69a901563e493d0f458ad72219819e0f2ee *hekate_ctcaer_1.6.bin
d18bff38795401329220324ed4928be2f51793b895cd19918cf8d2815db0da59 *hekate_ctcaer_2.0.bin
c040ce6ea3585b7ac84b46b47822b9c55bb9fd7a62d8c167e5fe4bfd4aefc3a6 *hekate_ctcaer_2.1.bin
5516c407fdad7b7314d607da2cd78ac9a0e2e025265278a6aed113ba05e3eb3b *hekate_ctcaer_2.2.bin
3cc05a44bc912c26f19b44bad1456ccc112f95ec536e9ea737a6cfe3a7dbbde0 *hekate_ctcaer_2.3.bin
2f612068734a5858a99d1f06ee7893b1c752334c1feea37bbb857f67fa162f94 *hekate_ctcaer_3.0.bin
368feb9366327de5a1c9cfc7f45e9601ac1d6356e8bc66e6c317b12e54b6b779 *hekate_ctcaer_3.1.bin
356fde36261aeac52944d03b2bb37e28879abd243f0588b3f352ace87204a90b *hekate_ctcaer_3.2.bin
79f287032dfb8f74a329f7d5431d463969346f86173652855fc494f0dee0efde *hekate_ctcaer_4.0.bin
95eee1c0055aefe512541e87d69b4b0ab7ce49a596a38f8e3893adaf5b9d4191 *hekate_ctcaer_4.10.0.bin
c93666efe42602df0ae882e9eb2f53e74df8a316cc2acba5b44aa0277b36f756 *hekate_ctcaer_4.10.1.bin
34215cdd1a36e9433a40deb4f5905cad7901c77a0729daf763b1bd36b991bf58 *hekate_ctcaer_4.1.bin
5a9ffc9cd1b3aa43924b1d1ddea90af6e60ffef9e68af3e5a32ca2909af81ad6 *hekate_ctcaer_4.2.bin
ace0d53dff6f5c60b2eee48fa3e6b3c69478ab0ae734d270d9d0c7af7c159f63 *hekate_ctcaer_4.5.bin
9c2d58cd7efb9c5f26b7c60eb2775f86698bb575703b1572c588aac4119a7929 *hekate_ctcaer_4.6.bin
31bd78b7b648a3992823a4ccabac4a5f7d883fedbf21509e776e717ecfefbc6e *hekate_ctcaer_4.6_svc.bin
6cb7f13e50bb754e27647f5635854fdad10d60a301a25fd13dfa21f039f30c7f *hekate_ctcaer_4.8.bin
aa9e1c77a90bdaf804d0fd2343d0889251b7139d35156b241af778f5a4b9d871 *hekate_ctcaer_4.9.1.bin
a135a861d80324bbd9630a30e62913dcb7d5282b13ea6521cb2e6d7e0e997148 *hekate_ctcaer_4.9.bin
8c467f2237aea4cb59078172a06396b31be4e30cda24a38d48b9a5c3fb1b1df4 *hekate_ctcaer_5.0.0.bin
7881a8927048b86cb9d5b49d24dc9f2cbd3f86739228ae212482ddba3c39338a *hekate_ctcaer_5.0.1.bin
090b1fb6f92ec0d6b939619c50f39c10dbb093ebeb99c06a321cc448c5efe439 *hekate_ctcaer_5.0.2.bin
cb7b36b7d8a6debf2167a78dd60f0a627f5383b0d8dcb7072f13830d112ead98 *hekate-ipl_ctcaer_1.1_1GBparts.bin
8f9cd988356f9d4633a7a9d55f28bd2f5031395949bd147ff7fe5340877893f6 *hekate-ipl_ctcaer_1.1.bin
918cbc4212db327b27e1c2d17f9acb5fe2361c82ddcbb47cf5d542511b3f2190 *hekate-ipl_ctcaer_1.2_1GBparts.bin
086fed0959b4ebda67338c3354b112286f608358e37d100910f84dd3d71fea71 *hekate-ipl_ctcaer_1.2.bin
7d92c260d9ea8535023b543179013bc1f8e1e2ed5fb4c6331b30bd75a7d0ddcc *hekate-ipl_ctcaer_1.3_1GBparts.bin
9ad2612377e8381a7e34dbc6490eec57a58f3acadaec47cbea25bf71793ecc11 *hekate-ipl_ctcaer_1.3.bin

moldimolt avatar Sep 24 '19 00:09 moldimolt

i have added a start point for this in my pr now tool reads horizon and atmosphere versions

next step is add version checker functionality

KranKRival avatar Sep 27 '19 00:09 KranKRival

Latest release now has firmware / atmosphere version display. I do plan to add a check for the latest atmosphere release upon starting the app also. Will add it either later today or tomorrow when I have some more free time 😄

ITotalJustice avatar Sep 28 '19 14:09 ITotalJustice

Hekate does have build in version checking for update.bin related stuff.

I'm not too sure how you'd access it though.

noirscape avatar Oct 01 '19 21:10 noirscape