Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KilleenCode/tauri-update-cloudflare
A Tauri update server, hosted as a Cloudflare edge function
https://github.com/KilleenCode/tauri-update-cloudflare
cloudflare tauri tauri-app
Last synced: 3 months ago
JSON representation
A Tauri update server, hosted as a Cloudflare edge function
- Host: GitHub
- URL: https://github.com/KilleenCode/tauri-update-cloudflare
- Owner: KilleenCode
- License: mit
- Created: 2022-03-26T14:39:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T10:39:22.000Z (over 1 year ago)
- Last Synced: 2024-04-27T14:32:49.165Z (7 months ago)
- Topics: cloudflare, tauri, tauri-app
- Language: TypeScript
- Homepage:
- Size: 980 KB
- Stars: 77
- Watchers: 4
- Forks: 54
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tauri - tauri-update-cloudflare - One-click deploy a Tauri Update Server to Cloudflare. (Development / Integrations)
README
# Tauri Update Server: Cloudflare
[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/killeencode/tauri-update-cloudflare)
## One-Click Deploy
1. Click the button above, let Cloudflare walk you through: it's easy!
2. Go to your forked repository, edit `wrangler.toml`:
- Update `GITHUB_ACCOUNT` and `GITHUB_REPO` to point to the Tauri project you're publishing releases fromMuch credit to [@lemarier](https://github.com/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](https://github.com/KilleenCode/brancato/blob/main/src-tauri/tauri.conf.json#L55)
### Legacy
use `https://your-update-server.com/`## Cloudflare Wrangler
### ๐ฉ ๐ป Developing
`wrangler dev`
[`src/index.ts`](./src/index.ts) calls the request handler in [`src/handler.ts`](./src/handler.ts), and will return the [request method](https://developer.mozilla.org/en-US/docs/Web/API/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](https://developers.cloudflare.com/workers/tooling/wrangler/commands/#publish).
## 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](https://github.com/settings/tokens/new), create it with the repo permissions.