electron-devtools-installer icon indicating copy to clipboard operation
electron-devtools-installer copied to clipboard

[Feature] Add option for check update if extension installed

Open jhen0409 opened this issue 7 years ago • 4 comments

Add option for check update if extension installed, I think it will be better than forceDownload.

For redux-devtools-extension, we can get the xml by https://clients2.google.com/service/update2/crx?x=id%3Dlmhkpmbekcpmknklioeibfkpmmfibljd%26uc&prodversion=32 (No response):

<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0" server="prod">
  <daystart elapsed_days="3620" elapsed_seconds="67699"/>
  <app appid="lmhkpmbekcpmknklioeibfkpmmfibljd" cohort="" cohortname="" status="ok">
    <updatecheck
      codebase="https://clients2.googleusercontent.com/crx/blobs/QgAAAC6zw0qH2DJtnXe8Z7rUJP2IRVE-L9w2IT8562wiulh2IgB09conu2XJ-g73l8oozDkTpsK4nut8cp-7Murq2_r8MbzmmbAhUzPkQuuESgjcAMZSmuV2YJ8g9OU9pR7i6f1D9n90dSy57w/extension_2_11_0_4.crx"
      fp="1.48a24cd00dc54fb49dde23bb80d57eeb2dd71a6380572ca5cad9831b60d36fd0"
      hash_sha256="48a24cd00dc54fb49dde23bb80d57eeb2dd71a6380572ca5cad9831b60d36fd0"
      protected="0"
      size="1486330"
      status="ok"
      version="2.11.0.4"
    />
  </app>
</gupdate>

jhen0409 avatar Nov 30 '16 03:11 jhen0409

Agree ! I already installed all the extensions but still got the error msg..

fomenyesu avatar Dec 08 '16 07:12 fomenyesu

Would love to have some sort of auto-update feature. I put this commit together but soon realized @jhen0409 strategy doesn't seem to work for all extensions unfortunately. Will look into later.

SimulatedGREG avatar Jan 13 '17 10:01 SimulatedGREG

@SimulatedGREG Thanks for do this! I haven't enough time to.

Look at your commit, semver can't compatible Chrome extension version, like currently redux-devtools-extension version is 2.12.2.1, should we update the extension just need to know the version is different?

jhen0409 avatar Jan 13 '17 10:01 jhen0409

Yeah I noticed that afterwards, although VUEJS_DEVTOOLS actually does use proper semver with version 3.0.5. Either way, when you plug in the chromeStoreId for each plugin, not all results produce a version number.

SimulatedGREG avatar Jan 13 '17 10:01 SimulatedGREG