GithubHelp home page GithubHelp logo

updater-deno's Introduction

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)

updater-deno's People

Contributors

lemarier avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.