Skip to content

Is there support for differential downloads? #176

Open
@aniketbiprojit

Description

The thing is I have an app which has binaries over 700MB. Can't ask user to update that much data everytime.

Cannot download differentially, fallback to full download: Error: Content-Type "multipart/byteranges" is expected, but got "application/octet-stream"

This is what I am using:

require('dotenv').config()
const express = require('express')
const { init, get_latest_yml, get_latest_blockmaps } = require('./api')
const Nuts = require('nuts-serve').Nuts

const app = express()

app.use(express.json())

const nuts = Nuts({
	repository: 'aftershootco/AfterShoot-Electron',
	token: process.env.GH_TOKEN,
})

app.get('/myapp/download/win/AfterShoot-win-*.exe', (req, res) => {
	res.redirect('/myapp/download/win/')
})

app.get('/myapp/download/mac/AfterShoot-mac-*.dmg', (req, res) => {
	res.redirect('/myapp/download/mac/')
})

app.use(
	'/myapp',
	(req, res, next) => {
		console.log(req.url)
		next()
	},
	nuts.router
)
app.listen(80)

Or is this happening due to redirect?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions