tauri-update-cloudflare
tauri-update-cloudflare copied to clipboard
A Tauri update server, hosted as a Cloudflare edge function
Tauri Update Server: Cloudflare
One-Click Deploy
- Click the button above, let Cloudflare walk you through: it's easy!
- Go to your forked repository, edit
wrangler.toml:- Update
GITHUB_ACCOUNTandGITHUB_REPOto point to the Tauri project you're publishing releases from
- Update
Much credit to @lemarier for the underlying logic at https://github.com/lemarier/updater-deno
Tauri Version Support
Tauri >= v1.0.0-rc5:
use https://your-update-server.com/v1 route
For example usage, see Brancato config
Legacy
use https://your-update-server.com/
Cloudflare Wrangler
๐ฉ ๐ป Developing
wrangler dev
src/index.ts calls the request handler in src/handler.ts, and will return the request method for the given request.
๐งช Testing
This template comes with jest tests which simply test that the request handler can handle each request method. npm test will run your tests.
๐ Previewing and Publishing
wrangler preview
wrangler publish
For information on how to preview and publish your worker, please see the Wrangler docs.
Private repos
In order to work with private repos you need to set GITHUB_TOKEN variable to your wrangler.toml file. You can create a personal access token here, create it with the repo permissions.