HamletDuFromage / aio-switch-updater

Update your CFW, cheat codes, firmwares and more directly from your Nintendo Switch!
GNU General Public License v3.0
1.29k stars 107 forks source link

Load custom_packs.json from a link #272

Open slslasher opened 1 year ago

slslasher commented 1 year ago

Is it possible to load custom_packs.json from a link hardcoded in custom_packs.json itself but it is hidden from AIO UI?

This is so that we can just update the custom_packs.json from the link itself and AIO Updated will pick up the latest custom_packs.json from the link.

HamletDuFromage commented 1 year ago

I don't think I understand what you're trying to do here. Can you rephrase it, or use an example for that?

slslasher commented 1 year ago

Hi, what I mean is custom_packs.json there are fields to input our own links to download. Is there a way I can upload custom_packs.json to a link then put the link in custom_packs.json. So everytime when AIO launches it will load the custom_packs.json from the custom link.

HeikesFootSlave commented 1 year ago

Sounds incrdible confusing to me!?!

Why all this work? Put the file into your pack or whatever and if it's downloaded the person will get the file with all the links in it (packs and misc)!

Or if it's in the pack then just give a link inside "custom_packs.json" under the "misc" with a zipfile containing the "new" custom_packs.json then it can be downloaded hundred times!

What??? Sounds like a loop for me and I'm still confused (and I think HamletDuFromage also)

HamletDuFromage commented 1 year ago

Hi, what I mean is custom_packs.json there are fields to input our own links to download. Is there a way I can upload custom_packs.json to a link then put the link in custom_packs.json. So everytime when AIO launches it will load the custom_packs.json from the custom link.

What Mr. Foot slave suggested kinda does what you want

Or if it's in the pack then just give a link inside "custom_packs.json" under the "misc" with a zipfile containing the "new" custom_packs.json then it can be downloaded hundred times!

If you're able to provide a static link for that custom_packs.json stored on your server, I'd assume you'd be able to provide static links for all the other files you want to download. I will not implement what you're asking for, it's just too confusing and too specific

slslasher commented 1 year ago

alright, yeah that is what I am currently doing now example:

{ "ams": { "Atmosphere 1.6.1 Firmware 17.0.0": "http://tiny.cc/ams" }, "misc": { "Firmware 17.0.0": "http://tiny.cc/firmware", "Update AIO List": "http://tiny.cc/config" } }

So the person would have the manually press "Update AIO List" every time, I just thought it would be more convenient to auto load from a static link which I can update the custom_packs.json from the backend. It was hard to explain in words in my 1st post.

HamletDuFromage commented 1 year ago

Why don't you just do a key called "latest firmware" and "latest atmosphere"? Sure your user wouldn't know which version you're talking about, but it'd be straight forward. But yeah, other than that your current method will have to do I'm afraid

slslasher commented 1 year ago

Why don't you just do a key called "latest firmware" and "latest atmosphere"? Sure your user wouldn't know which version you're talking about, but it'd be straight forward. But yeah, other than that your current method will have to do I'm afraid

yeah that works too.