gabe565 / CastSponsorSkip

⏭️ Skip YouTube ads and sponsorships on all local Google Cast devices
Apache License 2.0
286 stars 6 forks source link

Feature Request: OpenWRT support #35

Open duoi opened 9 months ago

duoi commented 9 months ago

Firstly I’d like to thank the creator and contributors for this fantastic product.

I have an OpenWRT based router and I like the idea of being to install this directly on there. I’m not sure what the complications are, but if it is a standalone binary, then it might just need to be packaged in the opkg format.

gabe565 commented 9 months ago

Hi! CastSponsorSkip does get built to a standalone binary, so it should work on your device. Unfortunately, the packaging tool I use (called GoReleaser) doesn't seem to support the opkg format, but you could still download the binary to your device! Do you know which CPU architecture your router uses?

duoi commented 9 months ago

That's cool, I'll see if I can roll something for it. It is MIPS-based however.

gabe565 commented 9 months ago

I'll search some more to see if there's any way for me to build an opkg.

I suspected it was MIPS. Go supports MIPS compilation so I'll go ahead and enable that even if I can't build an opkg!

gabe565 commented 9 months ago

Interesting. This thread makes it seem like opkg can install deb files, so I wonder if I just need to turn on MIPS compilation...

duoi commented 9 months ago

That would be really interesting, I didn't know that.

Digging into this further, it looks like I'm out of space on this router so wouldn't be able to go down the opkg route either way, and I'd end up just having some script run on startup to pull the binary down onto /tmp.

If you are able to make it work via opkg though I think it would be incredible. It negates the need for a separate server entirely.

duoi commented 8 months ago

Hi @gabe565, hope you are well! Do you plan on turning on MIPS compilation any time soon? Very happy to help test it!