Git Product home page Git Product logo

updaterini's People

Contributors

grigorykrasnochub avatar

Stargazers

 avatar

Watchers

 avatar  avatar

updaterini's Issues

Arhives support

Arhives support should resolve two big problems:

  1. Sources size, for aplications that use big amount of files
  2. Naming issue. Now all files should be named according to OS and Arch, and all files should be loaded in one release. This is not convenient, even if the source files are universal for all operating systems. For example, if someone decide to load release manually it would be tough.

So the solution is easy, archives downloads as any others files, after that if special flag set, mb for some reason you don't want to unpack archive, it unpacks and files used like in ordinary update.
Also, DoUpdate function singnature looks huge, I guess, UpdateConfig should be expand, to keep all necesary configs, or new struct should be added for DoUpdate configuration purpose.

DoUpdate
func (uc *UpdateConfig) DoUpdate(ver Version, curAppDir string, getReplacementFileInfo func(loadedFilename string) (ReplacementFile, error), doBeforeUpdate func() error) (_ UpdateResult, err error)

UpdateConfig
image

After some code check handle that DoUpdate can do all without UpdateConfig, so DoUpdate could be used without it.

As feature .zip and .tar archives should be supported

Versions without channels doesn't parse

Versions like "0.4.0-118-g8113a535-dirty" doesn't parse, but it's correct version naming, so let's parse it!
I think, all versions without chanel could be parsed as release channel versions.

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.