CastSponsorSkip icon indicating copy to clipboard operation
CastSponsorSkip copied to clipboard

Feature Request: OpenWRT support

Open duoi opened this issue 2 years ago • 7 comments

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.

duoi avatar Oct 14 '23 02:10 duoi

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?

gabe565 avatar Oct 14 '23 17:10 gabe565

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

duoi avatar Oct 15 '23 19:10 duoi

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 avatar Oct 15 '23 20:10 gabe565

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

gabe565 avatar Oct 15 '23 21:10 gabe565

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 avatar Oct 15 '23 21:10 duoi

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

duoi avatar Nov 27 '23 15:11 duoi

i dont believe you could ever be able to install and run a debian package inside an openwrt system... the package system, the architecture, everything are lights ahead different

the only reference to sponsorblock i found in openwrt is this: https://forum.openwrt.org/t/youtube-adblock-does-it-exist-on-openwrt-platform/184122/128

atesin avatar Dec 15 '24 02:12 atesin