dsh-staging-hunter: Keep DSH desktop in the first batch of nightly gray releases.
The DSH desktop client utilizes the `stagingPercentage` from `electron-updater` to control the release rate of nightly builds. Whether a machine qualifies for a specific bucket depends on the deterministic bucket value derived from the 12th to 15th bytes of the UUID in `.updaterId`. Machines with lower bucket values may never receive updates. `dsh-staging-hunter` (maintained by ChenXu233, MIT) pins the `.updaterId` to a target bucket value (default 1%). It employs `fs.watch` combined with periodic checks to automatically correct the value when it reverts to a random one, and uses a sidecar to ensure stability across launches. The article explains the bucketing principle, installation commands, two manual mounting methods for bundle/patch layers, five configuration items, and precautions: it does not affect the source of the installer or signature verification, requires a restart to take effect, and continuously monitors risks associated with the nightly builds.
Read More