Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release CRX-file to make Chromium based browser to autoupdate. #39

Closed
ghost opened this issue Dec 24, 2022 · 8 comments · Fixed by #57
Closed

Release CRX-file to make Chromium based browser to autoupdate. #39

ghost opened this issue Dec 24, 2022 · 8 comments · Fixed by #57

Comments

@ghost
Copy link

ghost commented Dec 24, 2022

Allow users to install .crx file of the extension to auto update the extension in chromium based browser.

@younesaassila
Copy link
Owner

Hey, I tried to switch to a CRX extension for Chrome for v1.5.0, but unfortunately CRX extensions disable themselves after one browser restart if they are not installed from the Chrome Web Store :/

@younesaassila
Copy link
Owner

younesaassila commented Dec 24, 2022

Thanks for your email, indeed it appears this could work with some Registry tweaks.

References:

Apparently some "update_url" pointing to an XML file would be required in manifest.json.

I don't really want to work on this right now so anyone who wants to is welcome to do so!

@younesaassila younesaassila reopened this Dec 24, 2022
@younesaassila younesaassila added the good first issue Good for newcomers label Dec 24, 2022
@TheRayJohnson
Copy link

TheRayJohnson commented Dec 27, 2022

This would be sweet if someone can work on this in the new year!

Or maybe make a lightweight newsletter kind of thing using something like Sendinblue, Mailjet or Mailchimp (free tiers) and send a short and sweet email of update? But that's a lot of work to remember to send email, collect users data (name/email) so I suspect the best option is GitHub alerts.

Do this directly via GitHub.
Go to a project page and click Watch button in the top right corner. There's a Custom option where you can toggle Releases. (Free free to include this in the README.md lol)

Or consider newreleases and Gitpunch or coderelease works (no registration required).

@younesaassila
Copy link
Owner

Okay so I've successfully installed the CRX version of the extension using the ExtensionAllowlist registry tweak. I wonder if people would be willing to execute a .reg file as admin though... I feel like we'd have to continue to provide a ZIP version. Also I haven't tested the auto-update aspect, let's hope Chrome isn't a b*tch and works like it's supposed to (simple XML file hosted on this repo with GitHub Pages)

Seems like the biggest part of the work is writing new Installation docs

@younesaassila younesaassila self-assigned this Dec 27, 2022
@younesaassila
Copy link
Owner

Spent my entire day trying to implement auto-update. Everything is supposed to work, yet Chrome refuses to update the extension. I have no idea why.

I'm done trying to add this. Let's hope the project gets upstreamed by the TTV LOL team so that they can deliver updates via the Chrome Web Store. Google makes everything so complicated for those that dare not to upload their extension to their store.

If anyone wants to attempt to implement this, GOOD LUCK.

@younesaassila younesaassila removed their assignment Dec 30, 2022
@younesaassila younesaassila removed the good first issue Good for newcomers label Dec 30, 2022
@revunix
Copy link

revunix commented Jan 1, 2023

Currently, I use the Arc Browser, this allows the installation of CRX files. I would also like to benefit from an automatic updater.

@Delphox
Copy link

Delphox commented Jan 17, 2023

@younesaassila Hello, I just did a test on my repo and successfully updated it (both on Chromium and Kiwi Browwser).

thorium_OjWMXEbKax.mp4

Here's my xml file

And here's the test releases they point to. They're the same as your 1.6.0 and 1.6.1 except with "update_url":"https://raw.githubusercontent.com/Delphox/ttv-lol-pro/main/update.xml" added in the (minified) manifest.json. So you should be able to do the same thing just replacing with your own extension id and respective raw repo path.

@younesaassila
Copy link
Owner

@Delphox Thanks for your comment. I finally figured out what I was doing wrong: I thought the XML file could contain a history of updates just like Firefox allows, but turns out Chrome expects to only see the latest version. Fixed it.

Next update will have Chrome auto-update available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants