Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there support for differential downloads? #176

Open
aniketbiprojit opened this issue Sep 22, 2020 · 1 comment
Open

Is there support for differential downloads? #176

aniketbiprojit opened this issue Sep 22, 2020 · 1 comment

Comments

@aniketbiprojit
Copy link

aniketbiprojit commented Sep 22, 2020

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?

@dopry
Copy link

dopry commented Jun 27, 2023

Nuts doesn't support differential downloads, unless you're using nuget/nupkg and generating deltas. differential downloads are typically package format specific. nuts is just a release server... You can check out my fork if you're looking for something currently maintained, https://github.com/dopry/pecans I'm also on the look out for additional maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants