Re: Auto Update for WEE?

new topic     » goto parent     » topic index » view thread      » older message » newer message

WEE updater now available. Download it in an empty directory (or an existing wee directory) and run it to download or update the files. It might not be able to update the dll while the editor is running, so please close WEE first. I didn't make it part of the editor for this reason, and I want the user to be able to control when it gets run.

How it works: I created manifest.json file with a sequence of the files in WEE, including the file hash(), github commit tag, optional 32/64 bit flag, and platforms supported by the file. To make the manifest.json file, I run manifest.ex > manifest.json to calculate the hashes and commit tags, and then pushed to the repo.

The updater.ex downloads the manifest.json through rawgit.com since that allows me to download it through http_get() using http instead of https. I have to use a .json extension since rawgit.com has a whitelist of allowed extensions, otherwise it will just redirect to https. Then it uses the file hash to determine if the existing file need to be updated. Outdated files are downloaded from cdn.rawgit.com for speed, and the git commit tag in the URL allows the cdn to cache each version separately.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu