CN103713926A - Method and system for updating software of client in advance - Google Patents

Method and system for updating software of client in advance Download PDF

Info

Publication number
CN103713926A
CN103713926A CN201310740714.1A CN201310740714A CN103713926A CN 103713926 A CN103713926 A CN 103713926A CN 201310740714 A CN201310740714 A CN 201310740714A CN 103713926 A CN103713926 A CN 103713926A
Authority
CN
China
Prior art keywords
file
data source
updating
instruction
client
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.)
Granted
Application number
CN201310740714.1A
Other languages
Chinese (zh)
Other versions
CN103713926B (en
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.)
Chengdu Xishanju Interactive Entertainment Technology Co Ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Chengdu Xishanju Interactive Entertainment Technology Co 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 Zhuhai Kingsoft Online Game Technology Co Ltd, Chengdu Xishanju Interactive Entertainment Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201310740714.1A priority Critical patent/CN103713926B/en
Publication of CN103713926A publication Critical patent/CN103713926A/en
Application granted granted Critical
Publication of CN103713926B publication Critical patent/CN103713926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and system for updating software of a client in advance. The method for updating the software of the client in advance comprises the steps that after a server generates a data source file and a data source index file, the client automatically downloads the data source file, but updating is not carried out; when updating is carried out, the server generates an updating instruction file according to the difference of the client before updating is carried out and the client after updating is accomplished, wherein the updating instruction file includes a newly-added file instruction and a deleting file instruction, the newly-added file instruction is directly searched for from the data source index file, and does not need to be searched for from the data source file, the time for searching is reduced, and the client automatically downloads the updating instruction file to carry out updating. The system for updating the software of the client in advance comprises a data source generating module, a free downloading module, an updating instruction generating module and an updating module. According to the method for updating the software of the client in advance, the generation speed of the updating instruction file is greatly increased, and the follow-up updating process is improved; due to the fact that a user carries out downloading and updating in a sectionalized mode, the problem that a server is blocked due to the fact that downloading is carried out at the same time is solved, updating efficiency is improved, and the requirement that all users carry out updating at the same time, and carry out follow-up application timely is met.

Description

A kind of method and system of pre-update software client
Technical field
The present invention relates to software upgrading field, particularly a kind of method and system of pre-update software client.
Background technology
The renewal of tradition application software, generally upgrades along with the issue of update software.But for the field of widespread use, such as office software, game etc., because the number of users using is huge simultaneously, if these users upgrade simultaneously, easily cause server to stop up, increase server load, cause server running fault, this has affected again user's renewal conversely.
For the larger software of renewal amount, such as big game application software etc., because updating file is downloaded consuming time longer, cannot meet user and upgrade in time and use in time, can bring much inconvenience to user, especially upgrade the time limit, while upgrading compared with multi-user simultaneously, this situation not only easily impacts server, and, more can seriously delay update time of user.
Summary of the invention
For addressing the above problem, the object of the present invention is to provide a kind of method and system of pre-update software client, reduce server load, for user, upgrade in time in time.
The present invention solves the technical scheme that its problem adopts:
Preferred enforcement of the present invention just provides a kind of method of pre-update software client, comprising:
(1) updating file is stored in the middle of data source file, and according to updating file data source index file corresponding to the storage Information generation in data source file;
(2) client is downloaded this data source file automatically;
(3) difference of front and back client is upgraded in contrast, according to data source index file, generates update instruction file;
(4) client is downloaded this update instruction file automatically, and upgrades according to this update instruction file and the data source file downloaded.
Described data source index file has been stored sign, off-set value and the size of updating file in data source file.
Described step (3) is specially:
The difference between the client of front and back is upgraded in contrast;
Newly-increased for needs or revise updating file, from reading in the middle of data source index file, need sign, off-set value and size newly-increased or updating file that revise, generate corresponding newly-increased file instruction, the file of deleting for needs, record needs the sign of deleted file, generates corresponding deleted file instruction;
The version number of client after the title of data source file and renewal is write to update instruction file.
In described step (4), according to this update instruction file and the data source file downloaded, upgrade and be specially:
The data source file corresponding according to the name lookup of the data source file recording in update instruction file;
Carry out one by one newly-increased file instruction and deleted file instruction in update instruction file, for newly-increased file instruction, according to the sign of the updating file recording in newly-increased file instruction, off-set value and size, from reading corresponding updating file in the middle of data source file, write client, for deleted file instruction, according to the sign of the deleted file recording in deleted file instruction, from client, delete corresponding file;
The version number recording in update instruction file is write to client.
Another preferred embodiment of the present invention provides a kind of system of pre-update software client, comprising:
Data source generation module, is stored in updating file in the middle of data source file in the mode of continuous blocks, and according to updating file data source index file corresponding to the storage Information generation in data source file;
Free download module, client is downloaded this data source file automatically;
Update instruction generation module, the difference of front and back client is upgraded in contrast, according to data source index file, generates update instruction file;
Update module, client is downloaded this update instruction file automatically, and upgrades according to this update instruction file and the data source file downloaded.
Described data source index file has been stored sign, off-set value and the size of updating file in data source file.
Described update instruction generation module comprises:
Contrast unit, the difference between the client of front and back is upgraded in contrast;
Newly-increased delete cells, newly-increased for needs or revise updating file, from reading in the middle of data source index file, need sign, off-set value and size newly-increased or updating file that revise, generate corresponding newly-increased file instruction, the file of deleting for needs, record needs the sign of deleted file, generates corresponding deleted file instruction;
Extra cell, writes update instruction file by the version number of client after the title of data source file and renewal.
Described update module comprises:
Search unit, the data source file corresponding according to the name lookup of the data source file recording in update instruction file;
Performance element, carry out one by one newly-increased file instruction and deleted file instruction in update instruction file, for newly-increased file instruction, according to the sign of the updating file recording in newly-increased file instruction, off-set value and size, from reading corresponding updating file in the middle of data source file, write client, for deleted file instruction, according to the sign of the deleted file recording in deleted file instruction, from client, delete corresponding file;
Version updating unit, writes client by the version number recording in update instruction file.
The invention has the beneficial effects as follows:
The present invention adopts a kind of method and system of pre-update software client, first according to updating file generated data source file and the data source index file corresponding with data source file, user can download this data source file in advance, when client need to be upgraded, according to the difference of upgrading former and later two clients, generate instruction updating file, update instruction file comprises newly-increased and delete instruction, newly-increased instruction has comprised need to increase and revise to client the instruction of corresponding updating file newly, as long as read corresponding updating file information from data source index file, thereby avoided searching one by one the loaded down with trivial details of updating file from huge data source file, delete instruction has recorded the file identification that needs deletion, user can upgrade client according to this instruction updating file, in whole process, data source file can be downloaded in advance, avoided the huge downloading flow of simultaneously downloading identical update time, having eliminated server obstruction etc. may cause server to produce the problem of fault, update instruction file is the index to data source file just, has greatly dwindled the flow of downloading while upgrading, and can not impact immediate updating, user upgrades according to this update instruction file, can reach the effect that upgrades in time and use in time.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and example, the invention will be further described.
Fig. 1 is the process flow diagram of the method for the invention;
Fig. 2 is the process flow diagram of generation update instruction file of the present invention;
Fig. 3 is the process flow diagram that client of the present invention is upgraded;
Fig. 4 is the structure composition frame chart of system of the present invention;
Fig. 5 is the structure composition frame chart of update instruction generation module of the present invention;
Fig. 6 is the structure composition frame chart of update module of the present invention.
Embodiment
The invention provides a kind of method of pre-update software client, shown in Fig. 1, comprise step:
Step 100, is stored in updating file in the middle of data source file, and according to updating file data source index file corresponding to the storage Information generation in data source file; Wherein, updating file is stored in the middle of data source file in the mode of continuous blocks, data source index file has recorded sign, off-set value and the size of updating file in the middle of data source file, and described sign can be the cryptographic hash of filename or the filename of updating file;
Step 101, service end is after generated data source file and data source index file, and client can be downloaded this data source file automatically, during download, can automatically be carried out by the background program of client, or is selected to download by user according to corresponding prompting;
Step 102, the difference of front and back client is upgraded in contrast, according to data source index file, generates update instruction file;
Step 103, client is downloaded this update instruction file automatically, and upgrades according to this update instruction file and the data source file downloaded.
Shown in Fig. 2, described step 102, when generating update instruction file, comprising:
Step 200, the difference between the client of front and back is upgraded in contrast;
Step 201, by contrast, can know the updating file that before upgrading, client need to be increased, modified or deleted, newly-increased for needs and revise updating file, from reading in the middle of data source index file, need sign, off-set value and size newly-increased or updating file that revise, with this, generate corresponding newly-increased file instruction, the updating file of deleting for needs, record needs the sign of deleted file, generates corresponding deleted file instruction;
Step 202, after above step completes, need to write the version number of client after the title of data source file and renewal in the middle of update instruction file.
Shown in Fig. 3, when described step 103 is upgraded according to update instruction file and the data source file downloaded, specifically comprise:
Step 300, the position that first needs to search the data source file of having downloaded, can find corresponding data source file according to the title of the data source file recording in update instruction file;
Step 301, carry out one by one newly-increased file instruction and deleted file instruction in update instruction file, for newly-increased file instruction, according to the sign of the updating file recording in newly-increased file instruction, off-set value and size, from reading corresponding updating file in the middle of data source file, write client, for deleted file instruction, according to the sign of the deleted file recording in deleted file instruction, from client, delete corresponding file;
Step 302, writes client by the version number recording in update instruction file.
In the present invention, server is after generated data source file and corresponding data source index file, and client can be downloaded this data source file automatically, or is selected to download by client, but does not now carry out renewal; When needs upgrade, server can generate update instruction file automatically, these update instruction files generate according to the difference between client before and after upgrading, the inside has comprised newly-increased file instruction and deleted file instruction, newly-increased file instruction can directly be searched from data source index file, and needn't go to search from data source file itself, has saved the time of searching, client can automatically be downloaded this update instruction file and upgrade, and also can be selected to upgrade by user.Because data source index file is with respect to data source file, the size of itself is very limited, therefore, can greatly shorten the formation speed of update instruction file, improves the more new technological process of postorder; Between update instruction file and data source file owing to thering is an intergrade, during this period, user carries out the download segmentation of two files, solve user while upgrading at one time and downloaded the problem that may cause server to stop up simultaneously, improved the efficiency of upgrading simultaneously, and met all users and upgrade and follow-up timely application simultaneously.
The present invention also provides a kind of system of pre-update software client, shown in Fig. 4, comprising:
Data source generation module 400, is stored in updating file in the middle of data source file in the mode of continuous blocks, and according to updating file data source index file corresponding to the storage Information generation in data source file;
Free download module 401, client is downloaded this data source file automatically;
Update instruction generation module 402, the difference of front and back client is upgraded in contrast, according to data source index file, generates update instruction file;
Update module 403, client is downloaded this update instruction file automatically, and upgrades according to this update instruction file and the data source file downloaded.
Described data source index file has been stored sign, off-set value and the size of updating file in data source file.
Shown in Fig. 5, described update instruction generation module 402 comprises:
Contrast unit 500, the difference between the client of front and back is upgraded in contrast;
Newly-increased delete cells 501, newly-increased for needs or revise updating file, from reading in the middle of data source index file, need sign, off-set value and size newly-increased or updating file that revise, generate corresponding newly-increased file instruction, the file of deleting for needs, record needs the sign of deleted file, generates corresponding deleted file instruction;
Extra cell 502, writes update instruction file by the version number of client after the title of data source file and renewal.
Shown in Fig. 6, described update module 403 comprises:
Search unit 600, the data source file corresponding according to the name lookup of the data source file recording in update instruction file;
Performance element 601, carry out one by one newly-increased file instruction and deleted file instruction in update instruction file, for newly-increased file instruction, according to the sign of the updating file recording in newly-increased file instruction, off-set value and size, from reading corresponding updating file in the middle of data source file, write client, for deleted file instruction, according to the sign of the deleted file recording in deleted file instruction, from client, delete corresponding file;
Version updating unit 602, writes client by the version number recording in update instruction file.
The concrete implementation of described system is with reference to described in described method, and described system can be completely achieved function described in described method.
The above, be preferred embodiment of the present invention, and the present invention is not limited to above-mentioned embodiment, as long as it reaches technique effect of the present invention with identical means, all should belong to protection scope of the present invention.

Claims (8)

1. a method for pre-update software client, is characterized in that, comprising:
(1) updating file is stored in the middle of data source file, and according to updating file data source index file corresponding to the storage Information generation in data source file;
(2) client is downloaded this data source file automatically;
(3) difference of front and back client is upgraded in contrast, according to data source index file, generates update instruction file;
(4) client is downloaded this update instruction file automatically, and upgrades according to this update instruction file and the data source file downloaded.
2. method according to claim 1, is characterized in that, described data source index file has been stored sign, off-set value and the size of updating file in data source file.
3. method according to claim 2, is characterized in that, described step (3) is specially:
The difference between the client of front and back is upgraded in contrast;
Newly-increased for needs or revise updating file, from reading in the middle of data source index file, need sign, off-set value and size newly-increased or updating file that revise, generate corresponding newly-increased file instruction, the file of deleting for needs, record needs the sign of deleted file, generates corresponding deleted file instruction;
The version number of client after the title of data source file and renewal is write to update instruction file.
4. method according to claim 3, is characterized in that, in described step (4), according to this update instruction file and the data source file downloaded, upgrades and is specially:
The data source file corresponding according to the name lookup of the data source file recording in update instruction file;
Carry out one by one newly-increased file instruction and deleted file instruction in update instruction file, for newly-increased file instruction, according to the sign of the updating file recording in newly-increased file instruction, off-set value and size, from reading corresponding updating file in the middle of data source file, write client, for deleted file instruction, according to the sign of the deleted file recording in deleted file instruction, from client, delete corresponding file;
The version number recording in update instruction file is write to client.
5. a system for pre-update software client, is characterized in that, comprising:
Data source generation module, is stored in updating file in the middle of data source file in the mode of continuous blocks, and according to updating file data source index file corresponding to the storage Information generation in data source file;
Free download module, client is downloaded this data source file automatically;
Update instruction generation module, the difference of front and back client is upgraded in contrast, according to data source index file, generates update instruction file;
Update module, client is downloaded this update instruction file automatically, and upgrades according to this update instruction file and the data source file downloaded.
6. system according to claim 5, is characterized in that, described data source index file has been stored sign, off-set value and the size of updating file in data source file.
7. system according to claim 6, is characterized in that, described update instruction generation module comprises:
Contrast unit, the difference between the client of front and back is upgraded in contrast;
Newly-increased delete cells, newly-increased for needs or revise updating file, from reading in the middle of data source index file, need sign, off-set value and size newly-increased or updating file that revise, generate corresponding newly-increased file instruction, the file of deleting for needs, record needs the sign of deleted file, generates corresponding deleted file instruction;
Extra cell, writes update instruction file by the version number of client after the title of data source file and renewal.
8. system according to claim 7, is characterized in that, described update module comprises:
Search unit, the data source file corresponding according to the name lookup of the data source file recording in update instruction file;
Performance element, carry out one by one newly-increased file instruction and deleted file instruction in update instruction file, for newly-increased file instruction, according to the sign of the updating file recording in newly-increased file instruction, off-set value and size, from reading corresponding updating file in the middle of data source file, write client, for deleted file instruction, according to the sign of the deleted file recording in deleted file instruction, from client, delete corresponding file;
Version updating unit, writes client by the version number recording in update instruction file.
CN201310740714.1A 2013-12-27 2013-12-27 Method and system for updating software of client in advance Active CN103713926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310740714.1A CN103713926B (en) 2013-12-27 2013-12-27 Method and system for updating software of client in advance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310740714.1A CN103713926B (en) 2013-12-27 2013-12-27 Method and system for updating software of client in advance

Publications (2)

Publication Number Publication Date
CN103713926A true CN103713926A (en) 2014-04-09
CN103713926B CN103713926B (en) 2017-02-01

Family

ID=50406929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310740714.1A Active CN103713926B (en) 2013-12-27 2013-12-27 Method and system for updating software of client in advance

Country Status (1)

Country Link
CN (1) CN103713926B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335196A (en) * 2015-11-02 2016-02-17 深圳市新国都支付技术有限公司 POS (Point Of Sale) terminal program incremental download method
CN107220035A (en) * 2016-03-22 2017-09-29 比亚迪股份有限公司 Interface subject updates system and method, client, instrument terminal and server
CN107357612A (en) * 2017-06-27 2017-11-17 聚好看科技股份有限公司 Application program updating detection method and device
CN107562440A (en) * 2017-09-05 2018-01-09 郑州云海信息技术有限公司 A kind of eeprom method for updating edition and device
CN108762798A (en) * 2017-04-25 2018-11-06 腾讯科技(深圳)有限公司 A kind of method and device of incremental update file
CN109062593A (en) * 2018-07-20 2018-12-21 Oppo(重庆)智能科技有限公司 Application processing method and device, electronic equipment, computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094229A (en) * 2007-07-24 2007-12-26 深圳市融合视讯科技有限公司 Increment upgrading system and method for networked application programs
CN101216771A (en) * 2007-12-29 2008-07-09 宇龙计算机通信科技(深圳)有限公司 Method, system and device for accomplishing mobile phones software upgrading through personal computer
CN101593118A (en) * 2009-02-24 2009-12-02 浪潮集团山东通用软件有限公司 A kind of software upgrade method flexibly
CN102662647A (en) * 2012-03-01 2012-09-12 中标软件有限公司 Lunix operating system and security update method of same
CN103064714A (en) * 2013-01-08 2013-04-24 北京赛科世纪数码科技有限公司 Software system updating method and software system updating device
US8594850B1 (en) * 2012-09-30 2013-11-26 Nest Labs, Inc. Updating control software on a network-connected HVAC controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094229A (en) * 2007-07-24 2007-12-26 深圳市融合视讯科技有限公司 Increment upgrading system and method for networked application programs
CN101216771A (en) * 2007-12-29 2008-07-09 宇龙计算机通信科技(深圳)有限公司 Method, system and device for accomplishing mobile phones software upgrading through personal computer
CN101593118A (en) * 2009-02-24 2009-12-02 浪潮集团山东通用软件有限公司 A kind of software upgrade method flexibly
CN102662647A (en) * 2012-03-01 2012-09-12 中标软件有限公司 Lunix operating system and security update method of same
US8594850B1 (en) * 2012-09-30 2013-11-26 Nest Labs, Inc. Updating control software on a network-connected HVAC controller
CN103064714A (en) * 2013-01-08 2013-04-24 北京赛科世纪数码科技有限公司 Software system updating method and software system updating device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335196A (en) * 2015-11-02 2016-02-17 深圳市新国都支付技术有限公司 POS (Point Of Sale) terminal program incremental download method
CN107220035A (en) * 2016-03-22 2017-09-29 比亚迪股份有限公司 Interface subject updates system and method, client, instrument terminal and server
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
CN107357612A (en) * 2017-06-27 2017-11-17 聚好看科技股份有限公司 Application program updating detection method and device
CN107562440A (en) * 2017-09-05 2018-01-09 郑州云海信息技术有限公司 A kind of eeprom method for updating edition and device
CN107562440B (en) * 2017-09-05 2021-04-13 郑州云海信息技术有限公司 Eeprom version updating method and device
CN109062593A (en) * 2018-07-20 2018-12-21 Oppo(重庆)智能科技有限公司 Application processing method and device, electronic equipment, computer readable storage medium

Also Published As

Publication number Publication date
CN103713926B (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN103713926A (en) Method and system for updating software of client in advance
US10089338B2 (en) Method and apparatus for object storage
US8983967B2 (en) Data storage system having mutable objects incorporating time
US8627029B2 (en) Methods for managing files according to application
US10509701B2 (en) Performing data backups using snapshots
CN101983376B (en) Access device, information recording device, information recording system, file management method, and program
US11662996B2 (en) System and method for downgrading applications
JP5886447B2 (en) Location independent files
CN105474200A (en) Hydration and dehydration with placeholders
CN103034566A (en) Method and device for restoring virtual machine
CN104426955A (en) Processing method of shared file, and cloud storage server
US10795579B2 (en) Methods, apparatuses, system and computer program products for reclaiming storage units
US20230306010A1 (en) Optimizing Storage System Performance Using Data Characteristics
CN102708197A (en) Multimedia file management method and device
CN103559139A (en) Data storage method and device
CN103902562A (en) Method and device for upgrading terminal databases
CN102523301A (en) Method for caching data on client in cloud storage
US10423580B2 (en) Storage and compression of an aggregation file
CN105511854A (en) Application fallback method and terminal equipment
JP6788002B2 (en) Data storage methods and devices for mobile devices
CN104182532A (en) Terminal file cleaning method and device and terminal
CN105677579A (en) Data access method and system in cache system
CN104063377A (en) Information processing method and electronic equipment using same
US11176089B2 (en) Systems and methods for implementing dynamic file systems
CN102737082A (en) Method and system for dynamically updating file data indexes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Patentee after: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.

Address before: 519000 Jinshan software building, 8 Lanshan lane, Jida Jingshan Hill Road, Zhuhai, Guangdong

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

Patentee before: CHENGDU XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.