grigorykrasnochub / updaterini Goto Github PK
View Code? Open in Web Editor NEWupdate your build from different sources and different channels
License: Apache License 2.0
update your build from different sources and different channels
License: Apache License 2.0
Arhives support should resolve two big problems:
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)
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
close app exit code in delete old resources should be 0, not 1. it is incorrect, because of 1 it is about error exit code
ServerSource check only last file in assets
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.