This tool allows you to easily take advantage of Tauri's dynamic update server capabilities using Cloudflare Workers. This project is a fork of KilleenCode/tauri-update-cloudflare, which hasn't been maintained for a while. This fork aims to keep the project up-to-date with the latest Tauri and Cloudflare Workers APIs.
Wrangler.toml variables:
GITHUB_ACCOUNT: GitHub account name (e.g.mackenly)GITHUB_REPO: GitHub repository name (e.g.my-tauri-app)
This project works with private GitHub repositories. To enable this, you need to set the GITHUB_API_TOKEN secret in your GitHub repository and it will be picked up by the deployment action. Alternatively, add the secret manually for manual deployments. This token should have the repo permission. Create a new token here.
CI/CD via GitHub Actions is set up to test and lint the code. CD requires the repository owner to set two repository secrets:
CF_API_TOKEN- Cloudflare API token (requires 'Edit Cloudflare Workers' permission template)CLOUDFLARE_ACCOUNT_ID- Cloudflare account ID
- Install dependencies:
npm installand ensurewrangleris installed. - Run
npm run testto ensure the code is working as expected. - Run
wrangler deployto deploy the code to Cloudflare Workers.
use https://your-update-server.com/v1 route
Read the Tauri documentation for more information. For an example usage, see Brancato config.
use https://your-update-server.com/
Not affiliated with Rust, Tauri, or Cloudflare. Use at your own risk and follow the license.