Skip to content

Ludea/updater-deno

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno Updater Proxy

Deploy

Sample PoC for Tauri updater using deno deploy or cloudflare workers.

For update server to work there are a few enviornment variables that need to be set either in the local development enviornment or in the deploy settings. These enviornment variables are:

name description required
GITHUB_ACCOUNT Github account YES
GITHUB_REPO Repository name YES
GITHUB_TOKEN Personal token NO

Once the enviornment variables are set you can start it locally using:

> GITHUB_ACCOUNT=lemarier GITHUB_REPO=tauri-test deployctl run --watch ./main.ts

Endpoints

This is the exposed endpoints and are fully compatible with tauri update server.

Once you deployed your server, you could use the main endpoint as update server in tauri.conf.json

Sample deno deploy URL: https://cool-goose-79.deno.dev/

Github releases

The update proxy will automatically find the right update archive for the right platform but the assets name should contains these keywords:

Platform Keywords Extension
macOS .app darwin osx tar.gz
linux AppImage tar.gz
win32 x32 or win32 zip
win64 x64 or win64 zip

Example, this is all valid examples or correct naming structure:

updater-example_2.0.0_amd64.AppImage.tar.gz
updater-example_2.0.0_x64.app.tar.gz
updater-example_2.0.0_x64.msi.zip

Known issue

  • Need to implement cache (not available for deno deploy yet)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%