Code Monkey home page Code Monkey logo

Comments (2)

Dragon1573 avatar Dragon1573 commented on July 20, 2024

@JustMyGithub - Sorry, it seems this package is unable to submit to the repository.

image

Copy the download URL from the browser, we get something like https://www.sleeptimer.net/download/sleeptimer-2-installer/?wpdmdl=486&refresh=6669c74b00f141718208331. Parameter refresh= is dynamic and automatically generated by the server. winget.exe doesn't support these kinds of packages.

If we remove refresh= part from parameters, we'll get errors in Komac as follows.

00:06:54 D:\...\winget-pkgs  [master ≡] 4m 36.331s 0x0001 pwsh> komac new --output .
> Package identifier: SleepTimer.SleepTimer.Ultimate
> Package version: 2.5.1
> 1st Installer URL https://www.sleeptimer.net/download/sleeptimer-2-installer/?wpdmdl=486
? 2nd Installer URL <canceled>
Error:
   0: Failed to get content length from 'https://www.sleeptimer.net/download/sleeptimer-2-installer/?wpdmdl=486'

Also on the download page, when we click Download button, a German version of "General Terms and Conditions of Use" (originally "Allgemeine Nutzungsbedingungen") is shown. Users have to explicitly accept it to start downloading.

recording

from winget-pkgs.

JustMyGithub avatar JustMyGithub commented on July 20, 2024

I tested the installer URL without the refresh and it worked and it still works - and it even works in another browser. According to your winget error message it seems that the server does not provide "content length" (size of the file) - Firefox just shows that size and therefore download time are not known during download, but nevrtheless the download works. Is winget not capable to handle downloads without "content length" ?
(And as a hash will be verified by winget, incomplete downloads would be detected implicitly)

Winget does support "Terms and Conditions", an example is veracrypt (where you have to use --accept-package-agreements), so that should not be an issue either

from winget-pkgs.

Related Issues (20)

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.