CN106302753A - The method and system of client-side program incremental update - Google Patents

The method and system of client-side program incremental update Download PDF

Info

Publication number
CN106302753A
CN106302753A CN201610686230.7A CN201610686230A CN106302753A CN 106302753 A CN106302753 A CN 106302753A CN 201610686230 A CN201610686230 A CN 201610686230A CN 106302753 A CN106302753 A CN 106302753A
Authority
CN
China
Prior art keywords
file
module
client
bag
incremental update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610686230.7A
Other languages
Chinese (zh)
Inventor
刘德建
胡彬
方振华
郭玉湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201610686230.7A priority Critical patent/CN106302753A/en
Publication of CN106302753A publication Critical patent/CN106302753A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides the method and system of a kind of client-side program incremental update, including: the program of client is split into plural module;Service end calculates the difference of the file bag of the module of new and old edition, generates and includes updating operating list and the corresponding incremental update bag updating file;Client is according to the latest edition number of the module in the name acquiring service end of module;If described latest edition number is different from the version number of the module of client, then client obtains the incremental update bag needed for described module according to described title and latest edition number;Decompress described incremental update bag, obtain updating file and updating operating list;If the action type in described renewal operating list is incremental update, then the original of described renewal file Yu described module is carried out difference calculating, generate new renewal file, and new is updated under the temp directory that file preservation to client is preset;Described temporary catalog file is covered in the program directory of client.

Description

The method and system of client-side program incremental update
Technical field
The present invention relates to field of computer technology, particularly relate to the method and system of a kind of client-side program incremental update.
Background technology
Along with the development of SmartClient, the various programs being applicable to client are arisen at the historic moment.General program all possesses Automatically updating function, it is common that the renewal bag on a corresponding server of more redaction, when program updates, client should Renewal bag downloads, and then carries out covering and replaces, completes to update.It is but if the content of this version updating is more, the most right The renewal bag answered will be bigger, needs to take a substantial amount of time down loading updating bag, and Consumer's Experience sense is poor.
The Chinese patent of Publication No. CN 104899057A proposes the update method of a kind of software module, including: load Multiple access request of software module carry out serializing process, the request queue after being serialized, wherein, the plurality of visit Ask request include for instruction described software module is updated more newly requested;By single thread successively from described sequence Read access request in request queue after change;When read access request be described more newly requested time, by described single line Journey unloads described software module, and reloads the described software module after renewal.
The program by carrying out modularity renewal to software, thus improves the renewal speed of software, but the program is to respectively The renewal of individual module is still the mode using existing support to download update all bag, therefore, when update content is more, each mould The renewal bag of block is the biggest, and download time is longer.
Summary of the invention
The technical problem to be solved is: provide the method and system of a kind of client-side program incremental update, energy The modules of enough quickly more new procedures.
In order to solve above-mentioned technical problem, the technical solution used in the present invention is:
A kind of method of client-side program incremental update, including:
The program of client is split into plural module;
Service end calculates the difference of the file bag of the module of new and old edition, generates and includes that updating operating list updates with corresponding The incremental update bag of file;
Client is according to the latest edition number of the module in the name acquiring service end of module;
If described latest edition number is different from the version number of the module of client, then client is according to described title and up-to-date Version number obtains the incremental update bag needed for described module;
Decompress described incremental update bag, obtain updating file and updating operating list;
If the action type in described renewal operating list is incremental update, then by described renewal file and described module Original carries out difference calculating, generates new renewal file, and the new file that updates is preserved the interim mesh preset to client Under record;
Described temporary catalog file is covered in the program directory of client.
Another technical scheme that the present invention provides is:
A kind of system of client-side program incremental update, including:
Split module, for the program of client is split into plural module;
Difference computation module, calculates the difference of the file bag of the module of new and old edition for service end, generates and includes updating Operating list and the corresponding incremental update bag updating file;
Version number's acquisition module, the latest edition of the module in the client name acquiring service end according to module Number;
Update bag acquisition module, if different from the version number of the module of client for described latest edition number, then client Hold and obtain the incremental update bag needed for described module according to described title and latest edition number;
Decompression module, is used for decompressing described incremental update bag, obtains updating file and updating operating list;
Update file acquisition module, if the action type in described renewal operating list is incremental update, then by institute The original stating renewal file and described module carries out difference calculating, generates new renewal file, and is protected by new renewal file Deposit to client preset temp directory under;
More new module, in the program directory that described temporary catalog file covers client.
The beneficial effects of the present invention is: first program is split into multiple module, only to needing the module updated to carry out Update, decrease the data volume of renewal;Secondly, incremental update bag is obtained from server when module updates, by incremental update bag Update file and original carry out difference and calculate and generate new renewal file, the original of overlay program realizes updating;Use The mode of incremental update, is different from prior art and updates the method that downloads of bag by whole, has that download time is short, updates Fireballing advantage.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for the client-side program incremental update of the embodiment of the present invention;
Fig. 2 is the structural representation of the system of the client-side program incremental update of the embodiment of the present invention.
Label declaration:
1, module is split;2, difference computation module;3, version number's acquisition module;4, bag acquisition module is updated;5, pressing mold is solved Block;6, file acquisition module is updated;7, more new module.
Detailed description of the invention
By describing the technology contents of the present invention in detail, being realized purpose and effect, below in conjunction with embodiment and coordinate attached Figure is explained.
The design of most critical of the present invention is: client-side program splits into multiple module, module is carried out incremental update.
Refer to Fig. 1, the present invention provides:
A kind of method of client-side program incremental update, including:
The program of client is split into plural module;
Service end calculates the difference of the file bag of the module of new and old edition, generates and includes that updating operating list updates with corresponding The incremental update bag of file;
Client is according to the latest edition number of the module in the name acquiring service end of module;
If described latest edition number is different from the version number of the module of client, then client is according to described title and up-to-date Version number obtains the incremental update bag needed for described module;
Decompress described incremental update bag, obtain updating file and updating operating list;
If the action type in described renewal operating list is incremental update, then by described renewal file and described module Original carries out difference calculating, generates new renewal file, and the new file that updates is preserved the interim mesh preset to client Under record;
Described temporary catalog file is covered in the program directory of client.
Further, after service end generates incremental update bag, raw according to described renewal operating list and corresponding renewal file Become under the complete file of latest edition, and the reparation catalogue that described complete file preservation to service end is preset.
Knowable to foregoing description, when carrying out incremental update, in fact it could happen that update file generated and unsuccessfully wait abnormal phenomena, therefore Service end also generates the complete file of latest edition after generating incremental update bag, therefore uses incremental update when client This complete file can be downloaded from service end when mode updates failure, use traditional mode to be updated, it is ensured that to be updated successfully.
Further, described renewal operating list includes the corresponding cryptographic Hash updating file;Generate new renewal file it After, before new renewal file is preserved to temp directory, farther include:
Client judges that the new cryptographic Hash updating file is the most identical with the cryptographic Hash updating operating list;
If identical, then the described new file that updates is preserved to the temp directory of client;
If it is different, then obtain described complete file from described reparation catalogue, using described complete file as new renewal File preserves to described temp directory.
Knowable to foregoing description, client use the mode of incremental update obtain update after file, need first to judge more New file is the most correct, i.e. whether the renewal file of incremental update is successfully generated, if correct, uses the renewal file of generation to enter Row updates, and failed then use complete file is updated, it is ensured that be updated successfully.
Further, after described complete file is preserved to reparation catalogue by service end, the renewal of described module is generated Detection address, renewal download address and reparation download address, described renewal detection address is for pointing to the up-to-date of described module Version number, described renewal download address is used for pointing to described incremental update bag, and described reparation download address is used for pointing to described complete Whole file.
Knowable to foregoing description, service end generates webpage configuration file, thus client can be according to webpage configuration file Obtain latest edition number, incremental update bag, complete file etc..
Further, client, with the title of described module and current version number as parameter, updates detection ground by described Location obtains latest edition number from service end, obtains incremental update bag by described renewal download address from service end, by described Repair download address and obtain complete file from service end.
Further, service end calculates the difference of the file bag of the module of new and old edition, generates and includes updating operating list With correspondence update file incremental update bag, particularly as follows:
Service end traversal compares the file bag of the module of new and old edition;
If the file bag of the module of redaction has increased file newly, then it is newly-increased for arranging the action type updated in operating list File, using newly-increased file as updating file, generates and includes described renewal operating list and update the incremental update bag of file;
If the file bag of the module of redaction deletes file, then the action type updated in operating list is set for deleting File, generates the incremental update bag including described renewal operating list;
If the file in the file bag of the module of the file bag of the module of redaction and legacy version is of the same name but file content not With, then arranging the action type updated in operating list is incremental update, described file content carries out difference calculating, generates and increase Amount updates file, using incremental update file as updating file, generates and includes described renewal operating list and update the increasing of file Amount updates bag.
Further, decompress described incremental update bag, obtain updating file and updating after operating list, by described temporarily Before catalogue file covers in the program directory of client, farther include:
If the action type in described renewal operating list is newly-increased file, then face described in the preservation extremely of described renewal file Time catalogue under;
If the action type in described renewal operating list is to delete file, then it is right to delete from the original of described program The file answered.
Knowable to foregoing description, the renewal of version includes newly-increased file, deletes that file is identical with filename but file content Difference, therefore service end generates different incremental update bags, when client updates according to increment more according to the different operations that updates Renewal file and the renewal operating list of new bag update accordingly.
Refer to Fig. 2, another technical scheme of the present invention is:
A kind of system of client-side program incremental update, including:
Split module 1, for the program of client is split into plural module;
Difference computation module 2, calculates the difference of the file bag of the module of new and old edition for service end, generates and includes updating Operating list and the corresponding incremental update bag updating file;
Version number's acquisition module 3, the latest edition of the module in the client name acquiring service end according to module Number;
Update bag acquisition module 4, if different from the version number of the module of client for described latest edition number, then client Hold and obtain the incremental update bag needed for described module according to described title and latest edition number;
Decompression module 5, is used for decompressing described incremental update bag, obtains updating file and updating operating list;
Update file acquisition module 6, if the action type in described renewal operating list is incremental update, then by institute The original stating renewal file and described module carries out difference calculating, generates new renewal file, and is protected by new renewal file Deposit to client preset temp directory under;
More new module 7, in the program directory that described temporary catalog file covers client.
Further, also include:
Repair file generating module, generate after incremental update bag for service end, according to described renewal operating list and right The complete file of file generated latest edition should be updated, and described complete file is preserved the reparation catalogue preset to service end Under;Described renewal operating list includes the corresponding cryptographic Hash updating file;
With the cryptographic Hash updating operating list whether judge module, judge the new cryptographic Hash updating file for client Identical;
Preserve module, if for identical, then the described new file that updates is preserved to the temp directory of client;
If it is different, then obtain described complete file from described reparation catalogue, using described complete file as new renewal File preserves to described temp directory.
Further, described difference computation module includes:
Traversal comparison module, compares the file bag of the module of new and old edition for service end traversal;
Newly-increased module, if the file bag for the module of redaction has increased file newly, is then arranged in renewal operating list Action type is newly-increased file, using newly-increased file as updating file, generates and includes described renewal operating list and update literary composition The incremental update bag of part;
Removing module, if the file bag for the module of redaction deletes file, is then arranged in renewal operating list Action type, for deleting file, generates the incremental update bag including described renewal operating list;
First computing module, if the file being used in the file bag of the file bag of the module of redaction and the module of legacy version Of the same name but file content different, then arranging the action type updated in operating list is incremental update, enters described file content Row difference calculates, and generates incremental update file, using incremental update file as updating file, generates and includes described renewal action column Table and the incremental update bag of renewal file;
If the action type that described renewal file acquisition module is additionally operable in described renewal operating list is newly-increased file, then Described renewal file is preserved to described temp directory;
If the action type that described more new module is additionally operable in described renewal operating list is to delete file, then from described journey The original of sequence is deleted the file of correspondence.
Embodiments of the invention one are:
A kind of method of client-side program incremental update, including:
The program of client is split into plural module;
Service end calculates the difference of the file bag of the module of new and old edition, generates and includes that updating operating list updates with corresponding The incremental update bag of file;Concrete, including: service end traversal compares the file bag of the module of new and old edition;If redaction The file bag of module has increased file newly, then arranging the action type updated in operating list is newly-increased file, by newly-increased file As updating file, generate and include described renewal operating list and update the incremental update bag of file;If the module of redaction File bag deletes file, then arranging the action type updated in operating list is deletion file, generates and includes described renewal behaviour Make the incremental update bag of list;If the file in the file bag of the module of the file bag of the module of redaction and legacy version of the same name but File content is different, then arranging the action type updated in operating list is incremental update, and described file content is carried out difference Calculate, generate incremental update file, using incremental update file as updating file, generate and include described renewal operating list and more The incremental update bag of new file;
Service end updates the complete file of file generated latest edition according to described renewal operating list and correspondence, and by institute State under the reparation catalogue that complete file preservation to service end is preset;
Described complete file is preserved to after repairing under catalogue by service end, generate described module renewal detection address, Updating download address and repair download address, described renewal detection address is for pointing to the latest edition number of described module, institute State renewal download address for pointing to described incremental update bag, described reparation download address is used for pointing to described complete file;
During client more new module, according to the title of module to be updated, update detection address acquisition service by described The latest edition number of the module on end;
If described latest edition number is different from the version number of the module of client, then client is according to described title and up-to-date Version number obtains the incremental update bag needed for described module;
Decompress described incremental update bag, obtain updating file and updating operating list;
If the action type in described renewal operating list is incremental update, then by described renewal file and described module Original carries out difference calculating, generates new renewal file, and the new file that updates is preserved the interim mesh preset to client Under record;If the action type in described renewal operating list is newly-increased file, then by the most described temporarily for the preservation of described renewal file Under catalogue;If the action type in described renewal operating list is to delete file, then it is right to delete from the original of described program The file answered;
Described temporary catalog file is covered in the program directory of client;
If the program of client needs the module updated to be multiple, the most each needs is updated Module is updated.
The content of above-described embodiment one is described with a concrete example below:
Upload more new packet flow journey:
1, server arranges the module and warehouse catalogue needing to update, and warehouse catalogue is defined as storing the file of old version Clip directory (release content updated can be automatically saved to warehouse catalogue, uses for later incremental update);
2, more new directory is set, it would be desirable to the file of renewal is placed in more new directory, with version number as Folder Name;
3, renewal is made:
3.1, the difference between calculation document bag, as a example by version 1000 upgraded version 1001: if newly increasing renewal File (version 1000 does not has this file, but version 1001 increases newly), then be copied directly to new file bag to 1000-1001 mesh Under record, the more new regulation (i.e. increasing file newly) of this file is saved in one simultaneously and updates (form: filename in operating list | hash value | mode of operation);If the file (version 1000 has this file, but version 1001 deletes) deleted, then will The more new regulation of this file is saved in renewal operating list;If the file updated (has in 1000 versions, in 1001 also Have, and different by hash value documents), then carry out difference calculating, generate and update file, renewal file copy is arrived Under new file bag 1000-1001 catalogue, the more new regulation of this file is saved in renewal operating list simultaneously;
3.2, the 1000-1001 catalogue updating operating list and preservation generated is compressed together, be packaged into one The renewal compressed package files of 1001-1001, i.e. incremental update bag, this document was downloaded when client updates;
3.3, up-to-date version all files complete copy to is repaired catalogue, repair All Files under catalogue necessary Ensure as up-to-date version file.
3.4, generate this module webpage configuration file, be mainly used in contrasting whether have renewal, and by this webpage configuration file The renewal detection address uploaded onto the server.
Down loading updating packet stream journey:
1, whether detection module has renewal, and by module title and current block version number as parameter, request service end is more Newly detect address, obtain server module latest edition number, if the version number of service end is more than local version number, then illustrate There is renewal, the most do not update.
If 2 have renewal, downloading corresponding incremental update bag, such as this locality is 1000, and server latest edition is 1001, then download the incremental update file bag of 1000-1001.
3, after downloading successfully, decompression obtains and updates file and update operating list;
4, by resolving renewal operating list, more new regulation, i.e. action type are obtained, if action type is newly-increased literary composition Part, then directly will update file and be saved under the temp directory of client, if incremental update file, then will update file with Original carries out difference calculating, generates up-to-date renewal file, calculates this renewal file hash simultaneously and preserves in more new regulation Hash value the most identical, identical then represent incremental update success, download in queue if it fails, then increase to reparation;If It is to delete file, then directly file is deleted.
5, detection is repaired and is downloaded the task whether queue there is a need to re-download, if it has, then by remediation server ground Location is downloaded and is carried out re-downloading operation.
6, temporary catalog file is covered the program directory of client, completes to update.
Embodiments of the invention two are:
The system that a kind of method of client-side program incremental update with above-described embodiment one is corresponding, including:
Split module, for the program of client is split into plural module;
Difference computation module, calculates the difference of the file bag of the module of new and old edition for service end, generates and includes updating Operating list and the corresponding incremental update bag updating file;Concrete, described difference computation module includes: traversal comparison module, The file bag of the module of new and old edition is compared for service end traversal;Newly-increased module, if the file bag of the module for redaction Increased file newly, then arranging the action type updated in operating list is newly-increased file, using newly-increased file as updating file, Generate and include described renewal operating list and update the incremental update bag of file;Removing module, if be used for the module of redaction File bag deletes file, then arranging the action type updated in operating list is deletion file, generates and includes described renewal behaviour Make the incremental update bag of list;First computing module, if being used for the file bag of the module of redaction and the literary composition of the module of legacy version File in part bag is of the same name but file content different, then arranging the action type updated in operating list is incremental update, to institute State file content and carry out difference calculating, generate incremental update file, using incremental update file as updating file, generate and include institute State and update operating list and update the incremental update bag of file;
Repair file generating module, generate after incremental update bag for service end, according to described renewal operating list and right The complete file of file generated latest edition should be updated, and described complete file is preserved the reparation catalogue preset to service end Under;Described renewal operating list includes the corresponding cryptographic Hash updating file;
Version number's acquisition module, the latest edition of the module in the client name acquiring service end according to module Number;
Update bag acquisition module, if different from the version number of the module of client for described latest edition number, then client Hold and obtain the incremental update bag needed for described module according to described title and latest edition number;
Decompression module, is used for decompressing described incremental update bag, obtains updating file and updating operating list;
Update file acquisition module, if the action type in described renewal operating list is incremental update, then by institute The original stating renewal file and described module carries out difference calculating, generates new renewal file, and is protected by new renewal file Deposit to client preset temp directory under;If the action type in described renewal operating list is newly-increased file, then by described Update file to preserve to described temp directory;
With the cryptographic Hash updating operating list whether judge module, judge the new cryptographic Hash updating file for client Identical;
Preserve module, if for identical, then the described new file that updates is preserved to the temp directory of client;
If it is different, then obtain described complete file from described reparation catalogue, using described complete file as new renewal File preserves to described temp directory;
More new module, in the program directory that described temporary catalog file covers client;Behaviour is updated if described Making the action type in list is to delete file, then delete the file of correspondence from the original of described program.
In sum, the method and system of the client-side program incremental update that the present invention provides, by each function of modularity, Can realize the portability of program installation kit, user can quickly download to the renewal bag of program and begin to use, and leads to simultaneously Cross the mode of incremental update to update each module, decrease the operating time of renewal, improve the ease for use of product.
The foregoing is only embodiments of the invention, not thereby limit the scope of the claims of the present invention, every utilize this The equivalents that bright description and accompanying drawing content are made, or directly or indirectly it is used in relevant technical field, the most in like manner include In the scope of patent protection of the present invention.

Claims (10)

1. the method for a client-side program incremental update, it is characterised in that including:
The program of client is split into plural module;
Service end calculates the difference of the file bag of the module of new and old edition, generates and includes that updating operating list updates file with corresponding Incremental update bag;
Client is according to the latest edition number of the module in the name acquiring service end of module;
If described latest edition number is different from the version number of the module of client, then client is according to described title and latest edition Number obtain the incremental update bag needed for described module;
Decompress described incremental update bag, obtain updating file and updating operating list;
If the action type in described renewal operating list is incremental update, then by the original text of described renewal file Yu described module Part carries out difference calculating, generates new renewal file, and new is updated under the temp directory that file preservation to client is preset;
Described temporary catalog file is covered in the program directory of client.
The method of client-side program incremental update the most according to claim 1, it is characterised in that service end generates increment more After new bag, according to described renewal operating list and the corresponding complete file updating file generated latest edition, and by described completely Under the reparation catalogue that file preservation to service end is preset.
The method of client-side program incremental update the most according to claim 2, it is characterised in that described renewal operating list Including the corresponding cryptographic Hash updating file;After generating new renewal file, new renewal file is preserved to temp directory Before, farther include:
Client judges that the new cryptographic Hash updating file is the most identical with the cryptographic Hash updating operating list;
If identical, then the described new file that updates is preserved to the temp directory of client;
If it is different, then obtain described complete file from described reparation catalogue, using described complete file as new renewal file Preserve to described temp directory.
The method of client-side program incremental update the most according to claim 2, it is characterised in that service end by described completely File preserves after extremely repairing under catalogue, generates the renewal detection address of described module, updates download address and repair download Address, described renewal detection address is for pointing to the latest edition number of described module, and described renewal download address is used for pointing to institute Stating incremental update bag, described reparation download address is used for pointing to described complete file.
The method of client-side program incremental update the most according to claim 4, it is characterised in that client is with described module Title and current version number be parameter, by described update detection address from service end obtain latest edition number, by described Update download address and obtain incremental update bag from service end, obtain complete file by described reparation download address from service end.
The method of client-side program incremental update the most according to claim 1, it is characterised in that service end calculates new old edition The difference of the file bag of this module, generates and includes updating operating list and the corresponding incremental update bag updating file, particularly as follows:
Service end traversal compares the file bag of the module of new and old edition;
If the file bag of the module of redaction has increased file newly, then arranging the action type updated in operating list is newly-increased literary composition Part, using newly-increased file as updating file, generates and includes described renewal operating list and update the incremental update bag of file;
If the file bag of the module of redaction deletes file, then the action type updated in operating list is set for deleting literary composition Part, generates the incremental update bag including described renewal operating list;
If the file bag of the module of redaction is of the same name with the file in the file bag of the module of legacy version but file content is different, then Arranging the action type updated in operating list is incremental update, and described file content carries out difference calculating, generates increment more New file, using incremental update file as updating file, generates and includes described renewal operating list and update the increment of file more New bag.
The method of client-side program incremental update the most according to claim 6, it is characterised in that decompress described incremental update Bag, after obtaining updating file and updating operating list, covers described temporary catalog file in the program directory of client Before, farther include:
If the action type in described renewal operating list is newly-increased file, then described renewal file is preserved to described interim mesh Under record;
If the action type in described renewal operating list is to delete file, then from the original of described program, delete correspondence File.
8. the system of a client-side program incremental update, it is characterised in that including:
Split module, for the program of client is split into plural module;
Difference computation module, calculates the difference of the file bag of the module of new and old edition for service end, generates and includes updating operation List and the corresponding incremental update bag updating file;
Version number's acquisition module, the latest edition number of the module in the client name acquiring service end according to module;
Updating bag acquisition module, if different from the version number of the module of client for described latest edition number, then client depends on The incremental update bag needed for described module is obtained according to described title and latest edition number;
Decompression module, is used for decompressing described incremental update bag, obtains updating file and updating operating list;
Update file acquisition module, if the action type in the described renewal operating list is incremental update, then by described more New file carries out difference calculating with the original of described module, generates new renewal file, and is preserved extremely by new renewal file Under the temp directory that client is preset;
More new module, in the program directory that described temporary catalog file covers client.
The system of client-side program incremental update the most according to claim 8, it is characterised in that also include:
Repair file generating module, generate after incremental update bag for service end, according to described renewal operating list and correspondence more Under the complete file of new file generated latest edition, and the reparation catalogue that described complete file preservation to service end is preset;Institute State renewal operating list and include the corresponding cryptographic Hash updating file;
Judge module, judges the cryptographic Hash whether phase of the new cryptographic Hash updating file and renewal operating list for client With;
Preserve module, if for identical, then the described new file that updates is preserved to the temp directory of client;
If it is different, then obtain described complete file from described reparation catalogue, using described complete file as new renewal file Preserve to described temp directory.
The system of client-side program incremental update the most according to claim 8, it is characterised in that described difference calculates mould Block includes:
Traversal comparison module, compares the file bag of the module of new and old edition for service end traversal;
Newly-increased module, if the file bag for the module of redaction has increased file newly, then arranges the operation updated in operating list Type is newly-increased file, using newly-increased file as updating file, generates and includes described renewal operating list and update file Incremental update bag;
Removing module, if the file bag for the module of redaction deletes file, then arranges the operation updated in operating list Type, for deleting file, generates the incremental update bag including described renewal operating list;
First computing module, if the file being used in the file bag of the file bag of the module of redaction and the module of legacy version is of the same name But file content is different, then arranging the action type updated in operating list is incremental update, poor to described file content Different calculating, generate incremental update file, using incremental update file as update file, generate include described renewal operating list and Update the incremental update bag of file;
If the action type that described renewal file acquisition module is additionally operable in described renewal operating list is newly-increased file, then by institute State renewal file to preserve to described temp directory;
If the action type that described more new module is additionally operable in described renewal operating list is to delete file, then from described program Original is deleted the file of correspondence.
CN201610686230.7A 2016-08-18 2016-08-18 The method and system of client-side program incremental update Pending CN106302753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610686230.7A CN106302753A (en) 2016-08-18 2016-08-18 The method and system of client-side program incremental update

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610686230.7A CN106302753A (en) 2016-08-18 2016-08-18 The method and system of client-side program incremental update

Publications (1)

Publication Number Publication Date
CN106302753A true CN106302753A (en) 2017-01-04

Family

ID=57679157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610686230.7A Pending CN106302753A (en) 2016-08-18 2016-08-18 The method and system of client-side program incremental update

Country Status (1)

Country Link
CN (1) CN106302753A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107992323A (en) * 2017-12-27 2018-05-04 深圳市科陆电子科技股份有限公司 A kind of concentrator upgrade method and system
CN108334771A (en) * 2017-01-17 2018-07-27 杭州海康威视数字技术股份有限公司 A kind of increment upgrade package generates, increment updating method and device
CN108733400A (en) * 2018-04-27 2018-11-02 新光互联投资管理有限公司 A kind of hot update method of App increments and service system
CN108762798A (en) * 2017-04-25 2018-11-06 腾讯科技(深圳)有限公司 A kind of method and device of incremental update file
CN109032637A (en) * 2018-07-17 2018-12-18 中国建设银行股份有限公司 Oftware updating method and device based on framework frame
WO2019037414A1 (en) * 2017-08-25 2019-02-28 深圳壹账通智能科技有限公司 Page configuration update method and device, and server and storage medium
CN109542851A (en) * 2018-11-30 2019-03-29 北京金山云网络技术有限公司 File updating method, apparatus and system
CN109977123A (en) * 2019-04-01 2019-07-05 时代数媒科技股份有限公司 A kind of mobile terminal table data diff algorithm
CN110209418A (en) * 2019-06-12 2019-09-06 南方电网科学研究院有限责任公司 Program updating method, device, equipment and computer readable storage medium
CN110262827A (en) * 2019-05-20 2019-09-20 北京三快在线科技有限公司 Method, apparatus, storage medium and the electronic equipment of incremental update
CN110347413A (en) * 2019-06-27 2019-10-18 北京口袋时尚科技有限公司 Software configuration information update method and device
CN110377321A (en) * 2019-07-22 2019-10-25 平安科技(深圳)有限公司 Method, apparatus, terminal and the storage medium of application program updating
CN111107133A (en) * 2019-11-08 2020-05-05 京东数字科技控股有限公司 Generation method of difference packet, data updating method, device and storage medium
CN111324660A (en) * 2018-12-13 2020-06-23 杭州海康威视系统技术有限公司 Data synchronization method and device, electronic equipment and machine-readable storage medium
CN111782249A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Method and device for upgrading service function of client and electronic equipment
CN112732314A (en) * 2020-12-30 2021-04-30 北京一亩田新农网络科技有限公司 Plug-in differential packaging method and device based on android, electronic equipment and computer readable medium
CN114691175A (en) * 2022-04-22 2022-07-01 麒麟合盛网络技术股份有限公司 Application updating method, device and system
CN116566965A (en) * 2023-07-11 2023-08-08 山东英围特智能科技有限公司 Processing method of OFD large file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931647A (en) * 2010-08-09 2010-12-29 福州星网视易信息系统有限公司 Three-tier architecture based method for optimizing incremental update of system data
CN102195804A (en) * 2011-03-10 2011-09-21 易程(苏州)软件股份有限公司 Automatic updating method of software and system thereof
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment
CN104539696A (en) * 2014-12-26 2015-04-22 北京像素软件科技股份有限公司 Client end incremental updating method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931647A (en) * 2010-08-09 2010-12-29 福州星网视易信息系统有限公司 Three-tier architecture based method for optimizing incremental update of system data
CN102195804A (en) * 2011-03-10 2011-09-21 易程(苏州)软件股份有限公司 Automatic updating method of software and system thereof
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment
CN104539696A (en) * 2014-12-26 2015-04-22 北京像素软件科技股份有限公司 Client end incremental updating method and system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334771A (en) * 2017-01-17 2018-07-27 杭州海康威视数字技术股份有限公司 A kind of increment upgrade package generates, increment updating method and device
CN108762798A (en) * 2017-04-25 2018-11-06 腾讯科技(深圳)有限公司 A kind of method and device of incremental update file
CN108762798B (en) * 2017-04-25 2021-11-26 腾讯科技(深圳)有限公司 Method and device for updating file in increment mode
WO2019037414A1 (en) * 2017-08-25 2019-02-28 深圳壹账通智能科技有限公司 Page configuration update method and device, and server and storage medium
CN107992323A (en) * 2017-12-27 2018-05-04 深圳市科陆电子科技股份有限公司 A kind of concentrator upgrade method and system
CN108733400A (en) * 2018-04-27 2018-11-02 新光互联投资管理有限公司 A kind of hot update method of App increments and service system
CN109032637A (en) * 2018-07-17 2018-12-18 中国建设银行股份有限公司 Oftware updating method and device based on framework frame
CN109542851A (en) * 2018-11-30 2019-03-29 北京金山云网络技术有限公司 File updating method, apparatus and system
CN111324660B (en) * 2018-12-13 2024-05-24 杭州海康威视系统技术有限公司 Data synchronization method, device, electronic equipment and machine-readable storage medium
CN111324660A (en) * 2018-12-13 2020-06-23 杭州海康威视系统技术有限公司 Data synchronization method and device, electronic equipment and machine-readable storage medium
CN109977123A (en) * 2019-04-01 2019-07-05 时代数媒科技股份有限公司 A kind of mobile terminal table data diff algorithm
CN110262827A (en) * 2019-05-20 2019-09-20 北京三快在线科技有限公司 Method, apparatus, storage medium and the electronic equipment of incremental update
CN110209418A (en) * 2019-06-12 2019-09-06 南方电网科学研究院有限责任公司 Program updating method, device, equipment and computer readable storage medium
CN110209418B (en) * 2019-06-12 2024-01-05 南方电网科学研究院有限责任公司 Program updating method, device, equipment and computer readable storage medium
CN110347413A (en) * 2019-06-27 2019-10-18 北京口袋时尚科技有限公司 Software configuration information update method and device
CN110377321A (en) * 2019-07-22 2019-10-25 平安科技(深圳)有限公司 Method, apparatus, terminal and the storage medium of application program updating
CN111107133A (en) * 2019-11-08 2020-05-05 京东数字科技控股有限公司 Generation method of difference packet, data updating method, device and storage medium
CN111782249A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Method and device for upgrading service function of client and electronic equipment
CN111782249B (en) * 2020-07-10 2024-03-29 上海淇毓信息科技有限公司 Method and device for upgrading service function of client and electronic equipment
CN112732314A (en) * 2020-12-30 2021-04-30 北京一亩田新农网络科技有限公司 Plug-in differential packaging method and device based on android, electronic equipment and computer readable medium
CN114691175A (en) * 2022-04-22 2022-07-01 麒麟合盛网络技术股份有限公司 Application updating method, device and system
CN116566965A (en) * 2023-07-11 2023-08-08 山东英围特智能科技有限公司 Processing method of OFD large file
CN116566965B (en) * 2023-07-11 2023-09-26 山东英围特智能科技有限公司 Processing method of OFD large file

Similar Documents

Publication Publication Date Title
CN106302753A (en) The method and system of client-side program incremental update
CN104793946B (en) Dispositions method and system are applied based on cloud computing platform
US7711760B2 (en) File update availability checking in a hierarchal file store
CN102073512B (en) JAVA cluster application system code loading and upgrading device and method
CN102053853A (en) Version updating method of online game
CN103942058B (en) A kind of EMBEDDED AVIONICS method for upgrading software and system
US8286127B2 (en) Mirrored file system
US9823915B1 (en) Software container format
CN109491695A (en) A kind of increment updating method of integrated Android application
US20060190939A1 (en) Updatable mobile handset based on linux with compression and decompression techniques
CN105224361B (en) A kind of method and system upgraded to sqlite3 type embedded databases
CN103188097A (en) Method, device and system achieving patch management
CN105160253B (en) Repair method, apparatus, system and the server of client-side program
CN105867973A (en) Loading method and system for so file in application program
CN104539696A (en) Client end incremental updating method and system
CN102200915B (en) Method and device for version migration of software package
US20090254575A1 (en) Apparatus and method for manipulating nested archive files and folders
CN105468396A (en) Differential packet generation method, upgrading method, generation device and Linux terminal
CN107193615A (en) The renewal dispositions method and device of item code information
CN108733400A (en) A kind of hot update method of App increments and service system
CN104765816B (en) Browser upgrading method and device and electronic equipment
CN106921731A (en) Leak restorative procedure and device
CN111932207A (en) Project data processing method and device, computer equipment and storage medium
CN101901152A (en) Method for updating contents in batch
CN102541593A (en) Rapid comparison method of versions of remote files

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104