Movatterモバイル変換


[0]ホーム

URL:


CN106648712A - Incremental updating packet generating method and device, and server - Google Patents

Incremental updating packet generating method and device, and server
Download PDF

Info

Publication number
CN106648712A
CN106648712ACN201710109119.6ACN201710109119ACN106648712ACN 106648712 ACN106648712 ACN 106648712ACN 201710109119 ACN201710109119 ACN 201710109119ACN 106648712 ACN106648712 ACN 106648712A
Authority
CN
China
Prior art keywords
file
installation
redaction
old version
installation file
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
CN201710109119.6A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710109119.6ApriorityCriticalpatent/CN106648712A/en
Publication of CN106648712ApublicationCriticalpatent/CN106648712A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了增量更新包的生成方法、装置和服务器。该方法的一具体实施方式包括:获取目标应用的新版本安装包和历史版本安装包;对于上述新版本安装包中的每个新版本安装文件,根据该新版本安装文件的文件类型生成该新版本安装文件与上述历史版本安装包中历史版本安装文件的差异文件;压缩所生成的各个差异文件,将压缩所得到的文件包作为上述目标应用的增量更新包。该实施方式减少了增量更新包的大小,继而减少了客户端下载增量更新包所需的时间和流量。

The application discloses a method, a device and a server for generating an incremental update package. A specific implementation of the method includes: obtaining the new version installation package and the historical version installation package of the target application; for each new version installation file in the above new version installation package, generating the new version according to the file type of the new version installation file A difference file between the version installation file and the historical version installation file in the above-mentioned historical version installation package; compress each generated difference file, and use the compressed file package as the incremental update package of the above-mentioned target application. This embodiment reduces the size of the incremental update package, thereby reducing the time and traffic required for the client to download the incremental update package.

Description

The generation method of incremental update bag, device and server
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to incremental update bagGeneration method, device and server.
Background technology
When client carries out applying the update, for the download time needed for saving client to download redaction installation kitAnd flow, mostly incremental update bag is downloaded from server using incremental update mode at present.Server is calculated by binary system differenceMethod is calculated redaction installation kit and the old version installation kit amount of making the difference, and generates incremental update bag.Then, server is being receivedWhen the renewal that client is sent is asked, by incremental update bag corresponding with current version number and target version number that client is sentDownload address be sent to client, so as to client can download incremental update bag, and merge with bag is currently installed on, it is rawInto redaction installation kit, so as to be finally completed the upgrading from current version number to target version number.
However, in current increment updating method, server is during incremental update bag is generated, no matter new edition intrinsic safetyIncluded file is that text or binary file generate incremental update bag according to unified mode in dress bag, so as toThe incremental update bag for being generated is larger, causes the time of client downloads incremental update bag longer larger with necessary flow then.
The content of the invention
The purpose of the application is to propose a kind of generation method of improved incremental update bag, device and server to solveThe technical problem that certainly background section above is mentioned.
In a first aspect, the embodiment of the present application provides a kind of generation method of incremental update bag, the method includes:Obtain meshThe redaction installation kit and old version installation kit of mark application;For each redaction in above-mentioned redaction installation kit installs textPart, generates according to the file type of the redaction installation file and is gone through in the redaction installation file and above-mentioned old version installation kitThe differential file of history version installation file;Each differential file for being generated of compression, by the file bag obtained by compression as upperState the incremental update bag of intended application.
In certain embodiments, above-mentioned file type is text or binary file;And it is above-mentioned new according to thisThe file type of version installation file generates the redaction installation file and installs with old version in above-mentioned old version installation kitThe differential file of file, including:Determine the file type of the redaction installation file;In response to determining the redaction installation fileFile type be binary file, replicate the redaction installation file, and will replicate the redaction installation file that obtains asThe differential file of the redaction installation file and old version installation file in above-mentioned old version installation kit.
In certain embodiments, the above-mentioned file type according to the redaction installation file generates the redaction installation fileWith the differential file of old version installation file in above-mentioned old version installation kit, also include:In response to determining the new edition intrinsic safetyThe file type of dress file is text, determines in above-mentioned old version installation kit and whether there is and the redaction installation fileFilename identical old version installation file;Do not exist and the redaction in response to determining above-mentioned old version installation kitThe filename identical old version installation file of installation file, then replicate the redaction installation file, and will replicate what is obtainedDifference of the redaction installation file as the redaction installation file and old version installation file in above-mentioned old version installation kitDifferent article part.
In certain embodiments, the above-mentioned file type according to the redaction installation file generates the redaction installation fileWith the differential file of old version installation file in above-mentioned old version installation kit, also include:In response to determining above-mentioned history versionThere is the filename identical old version installation file with the redaction installation file in this installation kit, generate the new edition intrinsic safetyFilename identical old version installation file in dress file and above-mentioned old version installation kit with the redaction installation fileDifferential file;Whether the file size for judging generated differential file is more than default file size threshold value;In response to giving birth toInto the file size of differential file be more than above-mentioned default file size threshold value, then replicate the redaction installation file, and will be multipleThe redaction installation file being obtained is installed as the redaction installation file with old version in above-mentioned old version installation kitThe differential file of file.
In certain embodiments, the above-mentioned file type according to the redaction installation file generates the redaction installation fileWith the differential file of old version installation file in above-mentioned old version installation kit, also include:In response to the difference text for being generatedThe file size of part is not more than default file size threshold value, then the differential file for being generated is defined as into the redaction installation fileWith the differential file of old version installation file in above-mentioned old version installation kit.
In certain embodiments, said method also includes:Receive the renewal request that client is sent, above-mentioned renewal request bagInclude the current version number and target version number of above-mentioned intended application;According to above-mentioned current version number and above-mentioned target version number, reallyThe download address of the incremental update bag corresponding with above-mentioned current version number and above-mentioned target version number of fixed above-mentioned intended application;WillThe download address of above-mentioned incremental update bag is sent to above-mentioned client, so that above-mentioned client is according under above-mentioned incremental update bagSet address is downloaded the incremental update bag corresponding with above-mentioned current version number and above-mentioned target version number of above-mentioned intended application and is gone forward side by sideRow incremental update is operated.
In certain embodiments, said method also includes:Receive the rollback downgrade request that client is sent, above-mentioned rollback dropLevel request includes the rollback degradation version number of above-mentioned intended application, wherein, above-mentioned rollback degradation version number is less than above-mentioned clientThe current version number of the intended application of middle installation;Obtain the full dose corresponding with above-mentioned rollback degradation version number of above-mentioned intended applicationThe download address of installation kit;The download address of above-mentioned full dose installation kit is sent to into above-mentioned client, so that above-mentioned client rootAbove-mentioned full dose installation kit is downloaded according to the download address of above-mentioned full dose installation kit and carry out rollback degraded operation.
Second aspect, the embodiment of the present application provides a kind of generating means of incremental update bag, and the device includes:First obtainsUnit is taken, is configured to obtain the redaction installation kit and old version installation kit of intended application;Signal generating unit, it is right to be configured toEach redaction installation file in above-mentioned redaction installation kit, being generated according to the file type of the redaction installation file shouldThe differential file of redaction installation file and old version installation file in above-mentioned old version installation kit;Compression unit, configurationFor compressing each differential file for being generated, incremental update of the resulting file bag as above-mentioned intended application will be compressedBag.
In certain embodiments, above-mentioned file type is text or binary file;And above-mentioned signal generating unitIncluding:First determining module, is configured to determine the file type of the redaction installation file;First replication module, configuration is usedIt is binary file in the file type in response to determining the redaction installation file, replicates the redaction installation file, and willThe redaction installation file that duplication is obtained is pacified as the redaction installation file with old version in above-mentioned old version installation kitThe differential file of dress file.
In certain embodiments, above-mentioned signal generating unit also includes:Second determining module, is configured in response to determining that this is newThe file type of version installation file is text, determines in above-mentioned old version installation kit and whether there is and the new edition intrinsic safetyThe filename identical old version installation file of dress file;Second replication module, is configured in response to determining above-mentioned historyThere is no the filename identical old version installation file with the redaction installation file in version installation kit, then replicate this newVersion installation file, and the redaction installation file that duplication is obtained is pacified as the redaction installation file and above-mentioned old versionThe differential file of old version installation file in dress bag.
In certain embodiments, above-mentioned signal generating unit also includes:Generation module, is configured in response to determining above-mentioned historyThere is the filename identical old version installation file with the redaction installation file in version installation kit, generate the redactionText is installed with the filename identical old version of the redaction installation file in installation file and above-mentioned old version installation kitThe differential file of part;Whether judge module, be configured to the file size of the generated differential file of judgement more than default fileSize threshold value;3rd replication module, the file size for being configured to the differential file in response to being generated is more than above-mentioned default textPart size threshold value, then replicate the redaction installation file, and will replicate the redaction installation file for obtaining as the new edition intrinsic safetyFill the differential file of file and old version installation file in above-mentioned old version installation kit.
In certain embodiments, above-mentioned signal generating unit also includes:3rd determining module, is configured in response to being generatedThe file size of differential file is not more than default file size threshold value, then the differential file for being generated is defined as into the new edition intrinsic safetyFill the differential file of file and old version installation file in above-mentioned old version installation kit.
In certain embodiments, said apparatus also include:Request reception unit is updated, reception client is configured to and is sentRenewal request, above-mentioned renewal request includes the current version number and target version number of above-mentioned intended application;Determining unit, configurationFor according to above-mentioned current version number and above-mentioned target version number, determining above-mentioned intended application and above-mentioned current version number and upperState the download address of the corresponding incremental update bag of target version number;First transmitting element, is configured to above-mentioned incremental update bagDownload address be sent to above-mentioned client so that above-mentioned client according to the download address of above-mentioned incremental update bag download it is above-mentionedThe incremental update bag corresponding with above-mentioned current version number and above-mentioned target version number of intended application simultaneously carries out incremental update operation.
In certain embodiments, said apparatus also include:Rollback downgrade request receiving unit, is configured to receive clientThe rollback downgrade request sent, above-mentioned rollback downgrade request includes the rollback degradation version number of above-mentioned intended application, wherein, it is above-mentionedCurrent version number of the rollback degradation version number less than the intended application installed in above-mentioned client;Second acquisition unit, configuration is usedIn the download address of the full dose installation kit corresponding with above-mentioned rollback degradation version number for obtaining above-mentioned intended application;Second sends singleUnit, is configured to for the download address of above-mentioned full dose installation kit to be sent to above-mentioned client, so that above-mentioned client is according to above-mentionedThe download address of full dose installation kit downloads above-mentioned full dose installation kit and carries out rollback degraded operation.
The third aspect, the embodiment of the present application provides a kind of server, and the server includes:One or more processors;Storage device, for storing one or more programs, when said one or multiple programs are held by said one or multiple processorsDuring row so that said one or multiple processors realize the method as described in arbitrary implementation in first aspect.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable recording medium, is stored thereon with computer journeySequence, it is characterised in that the computer program is when executed by realizing the side as described in arbitrary implementation in first aspectMethod.
The generation method and device of the incremental update bag that the application is provided, by the redaction installation kit for obtaining intended applicationWith old version installation kit, then for each the redaction installation file in above-mentioned redaction installation kit, according to the redactionThe file type of installation file generates the redaction installation file with old version installation file in above-mentioned old version installation kitDifferential file, each differential file for being generated finally is compressed, by the file bag obtained by compression as above-mentioned intended applicationIncremental update bag, so as to the difference of the old version installation file in redaction installation file and old version installation kit is generatedDuring file, different methods are taken according to the difference of the file type of redaction installation file, reduce incremental updateThe file size of bag, reduces the time needed for client downloads incremental update bag and flow then.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application otherFeature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 a are the flow charts of one embodiment of the generation method of the incremental update bag according to the application;
Fig. 2 b are a kind of flow charts of implementation of step 202 in flow chart shown in Fig. 2 a;
Fig. 2 c are the flow charts of another kind of implementation of step 202 in flow chart shown in Fig. 2 a;
Fig. 3 is the schematic diagram of an application scenarios of the generation method of the incremental update bag according to the application;
Fig. 4 is the flow chart of another embodiment of the generation method of the incremental update bag according to the application;
Fig. 5 is the structural representation of one embodiment of the generating means of the incremental update bag according to the application;
Fig. 6 is adapted for the structural representation of the computer system of the server for realizing the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that, in order toBe easy to description, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phaseMutually combination.Below with reference to the accompanying drawings and in conjunction with the embodiments describing the application in detail.
Fig. 1 shows can be using the generating means of the generation method of the incremental update bag of the application or incremental update bagThe exemplary system architecture 100 of embodiment.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105.Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be withIncluding various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted by network 104 with using terminal equipment 101,102,103 with server 105, to receive or send outSend message etc..Various client applications, such as web browser applications, purchase can be installed on terminal device 101,102,103Species application, searching class application, JICQ, mailbox client, social platform software etc..Additionally, terminal device 101,102nd, it is also equipped with for managing (for example download, update, rollback degrades, unloading etc.) above-mentioned terminal device on 103 to be pacifiedThe management-type application of each application of dress.
Terminal device 101,102,103 can support that application download, renewal, rollback degradation, the various electronics of unloading setIt is standby, including but not limited to smart mobile phone, panel computer, pocket computer on knee and desktop computer etc..
Server 105 can be that the management-type application by installing on terminal device 101,102,103 provides the clothes supportedBusiness device.Server 105 can be analyzed to data such as the renewal requests that receives and wait process, and result (for example be increasedAmount updates the download address of bag) feed back to terminal device 101,102,103.
It should be noted that the generation method of incremental update bag that the embodiment of the present application is provided is typically by server 105Perform, correspondingly, the generating means of incremental update bag are generally positioned in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematic.According to realizing needWill, can have any number of terminal device, network and server.
With continued reference to Fig. 2 a, the stream of one embodiment of the generation method of incremental update bag according to the application is it illustratesJourney 200.The generation method of the incremental update bag, comprises the following steps:
Step 201, obtains the redaction installation kit and old version installation kit of intended application.
In the present embodiment, the generation method operation of incremental update bag electronic equipment (such as clothes shown in Fig. 1 thereonBusiness device) the redaction installation kit and old version installation kit of intended application can be obtained.Wherein, redaction installation kit can be rightFunctional in old version installation kit of intended application improved, increase New function or delete it is functional after give birth toInto.
In practice, the redaction installation kit of intended application can be that each redaction installation file to intended application is carried outResulting compressed package after compression.Each redaction installation file of intended application can include executable program file, scriptFile, configuration file and picture file, audio file, video file etc..Equally, the old version installation kit of intended applicationIt can be compressed package resulting after each old version installation file to intended application is compressed.Intended application eachOld version installation file can also include executable program file, script file, configuration file and picture file, audio frequency textPart, video file etc..In addition, the redaction installation kit and old version installation kit of intended application can have corresponding version number,Version number can serve to indicate that the redaction installation kit of intended application or the version of old version installation kit.
It should be noted that above-mentioned electronic equipment can by wired or wireless mode from communicate with connection otherElectronic equipment obtains the redaction installation kit and old version installation kit of intended application;Can be with from locally obtaining locally storedThe redaction installation kit and old version installation kit of intended application.Wherein, the redaction installation kit of locally stored intended applicationWith old version installation kit can be that electronic equipment is previously generated, or third-party server is previously generated and is sent toIn above-mentioned electronic equipment.The present embodiment is to the redaction installation kit of intended application and the concrete storage position of old version installation kitPut and be not defined.
Step 202, for each the redaction installation file in redaction installation kit, according to the redaction installation fileFile type generates the differential file of the redaction installation file and old version installation file in old version installation kit.
In the present embodiment, based on the redaction installation kit and old version installation kit obtained in step 201, above-mentioned electronicsEquipment (such as the server shown in Fig. 1) can first obtain each the redaction installation file in redaction installation kit, then,The redaction installation file is generated with old version in old version installation kit according to the file type of the redaction installation fileThe differential file of installation file.
In practice, above-mentioned electronic equipment can be decompressed by the redaction installation kit to intended application, so as toTo each redaction installation file in redaction installation kit.In the same manner, above-mentioned electronic equipment can also be by intended applicationOld version installation kit is decompressed, so as to each old version in the old version installation kit for obtaining intended application is installedFile.
It should be noted that the above-mentioned method decompressed to compressed package is widely studied at present and application known skillArt, will not be described here.
In some optional implementations of the present embodiment, above-mentioned file type can be text or binary systemFile.Wherein, text refers to that dedicated for storing the file of the data of text character the file in addition to text isBinary file, for example, picture file, audio file, video file, executable file etc..
In some optional implementations of the present embodiment, as shown in Figure 2 b, step 202 can include following sub-stepSuddenly:
Sub-step 2021b, determines in old version installation kit with the presence or absence of the file famous prime minister with the redaction installation fileSame old version installation file, if it does, sub-step 2022b is gone to, if it does not, going to sub-step 2022b '.
Sub-step 2022b ', the redaction installation file is replicated, and the redaction installation file for obtaining will be replicated as thisThe differential file of old version installation file in redaction installation file and old version installation kit.
In this implementation, above-mentioned electronic equipment can be determined in old version installation kit not in sub-step 2021bIn the case of there is the filename identical old version installation file with the redaction installation file, show that the redaction is installedFile is increased file with respect to old version installation kit, therefore, above-mentioned electronic equipment can directly replicate the redaction and installFile, and the redaction installation file for obtaining will be replicated as history version in the redaction installation file and old version installation kitThe differential file of this installation file.
Sub-step 2022b, determines the file type of the redaction installation file, if the file of the redaction installation fileType is binary file, goes to sub-step 2023b ', if the file type of the redaction installation file is text, turnTo sub-step 2023b.
In this implementation, above-mentioned electronic equipment can determine in sub-step 2021b to be deposited in old version installation kitIn the case of the filename identical old version installation file with the redaction installation file, show that the redaction installs textPart is amended file with respect to old version installation kit, therefore, above-mentioned electronic equipment can be the redaction installation file lifeInto the differential file with file of the same name in old version installation kit.Because file type is different, differential file is generated accordinglyAlgorithm is also differed.It is character data due to what is stored in text, corresponding text difference algorithm is typically all baseCompare in character.And in binary file store be binary data, corresponding binary system difference algorithm can not be character ratioIt is right, and should be that binary system is compared.Therefore, before differential file is generated, above-mentioned electronic equipment can first determine the new edition intrinsic safetyThe file type of dress file.If it is determined that the file type of the redaction installation file is binary file, sub-step is gone to2023b ', if the file type of the redaction installation file is text, goes to sub-step 2023b.
Sub-step 2023b ', in generating the redaction installation file and old version installation kit using binary system difference algorithmWith the differential file of the filename identical old version installation file of the redaction installation file, and by the difference for being generated textDifferential file of the part as old version installation file in the redaction installation file and old version installation kit.
As an example, various existing binary system difference method comparison instrument (for example, Beyond can be adoptedCompare, a set of software released by Scooter Software is mainly used for contrasting two files or file), it is rightPacify with the filename identical old version of the redaction installation file in the redaction installation file and old version installation kitThe dress file amount of making the difference is calculated, and generates differential file.
Sub-step 2023b, using text difference algorithm generate in the redaction installation file and old version installation kit withThe differential file of the filename identical old version installation file of the redaction installation file, and by the differential file for being generatedAs the differential file of old version installation file in the redaction installation file and old version installation kit.
As an example, (what for example, Google provided opens can to adopt various existing text difference method comparison instrumentsSource instrument google-diff-match-patch), in the redaction installation file and old version installation kit with the redactionThe filename identical old version installation file amount of making the difference of installation file is calculated, and generates differential file.
Alternatively, text difference method comparison instrument is typically by old version installation file A to text type and newThe file content of version installation file B enters line character comparison, and it is new to obtain from the up-to-date of old version installation file AThe character for increasing newly needed for the file content of version installation file B, deleting or change.Wherein, it can be by two texts that character is comparedThe character of the same position in presents is compared one by one, to determine two texts in the character of same position whether send outChange more.As an example, the file content of redaction installation file B includes character string " weather is pretty good, wants to go out to take a walk ",The file content of old version installation file A includes character string " weather is not all right, can go out for a walk ", by by two charactersCharacter in string is compared one by one, it is known that be updated to character string " weather by character string " weather is not all right, can go out for a walk "It is pretty good, want to go out to take a walk " newly-increased character "true" is needed, need the operation for carrying out to include:Delete character " ", by character" OK " be substituted for " mistake " and by character " can " be substituted for " thinking ", therefore, old version installation file A and redaction installation fileThe file content of the differential file of B can include following information:
1st, character " " is deleted;
2nd, character " OK " is substituted for " mistake "
3rd, by character " can " be substituted for " thinking ".
In some optional implementations of the present embodiment, as shown in Figure 2 c, step 202 can also include following sub-stepSuddenly:
Sub-step 2021c, determines the file type of the redaction installation file, if the file of the redaction installation fileType is binary file, goes to sub-step 2022c ', if the file type of the redaction installation file is text, turnTo sub-step 2022c.
Find after the comparative analysis to existing file difference comparison algorithm, existing difference algorithm is generating twoDuring differential file between binary file, the file size of the differential file for often generating is big with original binary fileLittle no too big difference, therefore, discomfort is combined into two binary files and generates differential files, on the contrary, generates the mistake of differential fileThe formation speed that journey causes incremental update bag is slower, and causes client after incremental update bag has been downloaded, and needs to payThe time of redaction installation file is synthesized according to old version installation file and differential file.And existing difference algorithm is being generatedDuring differential file between two texts, the size difference of the differential file size for often generating and original textIt is larger, it is suitably for two texts and generates differential file.Therefore, in this implementation, can be it is determined that the new edition intrinsic safetyWhen the file type of dress file is binary file, sub-step 2022c is gone to ', it is determined that the file of the redaction installation fileType is text, goes to sub-step 2022c.
Sub-step 2022c ', the redaction installation file is replicated, and the redaction installation file for obtaining will be replicated as thisThe differential file of old version installation file in redaction installation file and old version installation kit.
In this implementation, above-mentioned electronic equipment can determine the redaction installation file in sub-step 2021cIn the case that file type is binary file, because binary file is not suitable for generating differential file, it is thus possible to directlyThe redaction installation file is replicated, and the redaction installation file for obtaining will be replicated as the redaction installation file and history versionThe differential file of old version installation file in this installation kit.
In this implementation, above-mentioned electronic equipment can also be determined in old version installation kit in sub-step 2022cIn the case of there is no the filename identical old version installation file with the redaction installation file, show the new edition intrinsic safetyDress file is increased file with respect to old version installation kit, therefore, it can directly replicate the redaction installation file, and will be multipleThe redaction installation file being obtained is used as old version installation file in the redaction installation file and old version installation kitDifferential file.
Sub-step 2022c, determines in old version installation kit with the presence or absence of the file famous prime minister with the redaction installation fileSame old version installation file, if it does, sub-step 2023c is gone to, if it does not, going to sub-step 2022c '.
In this implementation, above-mentioned electronic equipment can determine the redaction installation file in sub-step 2021cIn the case that file type is text, determine in old version installation kit with the presence or absence of the text with the redaction installation filePart name identical old version installation file, if it does, sub-step 2023c is gone to, if it does not, going to sub-step2022c’。
Sub-step 2023c, generate in the redaction installation file and old version installation kit with the redaction installation fileFilename identical old version installation file differential file, and by the differential file for being generated, as the new edition intrinsic safetyThe differential file of old version installation file in dress file and old version installation kit.
In this implementation, above-mentioned electronic equipment can determine in sub-step 2022c to be deposited in old version installation kitIn the case of the filename identical old version installation file with the redaction installation file, show that the redaction installs textPart is amended file with respect to old version installation kit, therefore, it can generate the redaction installation file with old version peaceDifferential file with the filename identical old version installation file of the redaction installation file in dress bag, and will be generatedDifferential file, as the differential file of old version installation file in the redaction installation file and old version installation kit.It is realIn trampling, various existing text difference method comparison instruments (for example, google-diff-match-patch) can be adopted, it is rightPacify with the filename identical old version of the redaction installation file in the redaction installation file and old version installation kitThe dress file amount of making the difference is calculated, and generates differential file.
Step 203, compresses each differential file for being generated, and will compress increasing of the resulting file bag as intended applicationAmount updates bag.
In the present embodiment, the generation method operation of incremental update bag electronic equipment thereon can be in step 202Each differential file for being generated is compressed, and the file bag obtained by compressing is used as the incremental update bag of intended application.
It should be noted that the above-mentioned compressed file and method that obtains file bag is at present widely studied and application knownTechnology, will not be described here.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also perform after step 203 withLower step (not shown in Fig. 2 a):
Step 204, receives the renewal request that client is sent.
In this implementation, above-mentioned electronic equipment can receive client after the incremental update bag for generating intended applicationThe renewal request that end is sent, wherein, updating request includes the current version number and target version number of intended application.That is, clientWish that the intended application that will be installed thereon is upgraded to target version number from current version number, above-mentioned target version number is worked as higher than above-mentionedFront version number.
Step 205, according to current version number and target version number, determine intended application with current version number and target versionThe download address of this number corresponding incremental update bag.
In this implementation, above-mentioned electronic equipment can in advance be directed to the installation kit of the Liang Ge version numbers of intended application,The wherein corresponding bag that updates of higher-version number is updated into bag as redaction, using the corresponding bag that updates of relatively low version number as historyVersion updating bag, then using the method described in step 201 to step 203, generate intended application from relatively low version numberCorresponding old version installation kit is upgraded to the incremental update bag of the corresponding redaction installation kit of higher-version number.
So, after above-mentioned electronic equipment receives the renewal request that client is sent, it is possible in update requestCurrent version number, to update the target version number in asking as higher-version number, is then obtained advance as relatively low version numberThe download address of the incremental update bag generated to higher-version number from above-mentioned relatively low version number's incremental update for intended application.
Step 206, by the download address of incremental update bag client is sent to
In this implementation, above-mentioned electronic equipment can be by the download address of the incremental update bag determined in step 205Client is sent to, so that client is according to the download address of incremental update bag download intended application and current version number and meshThe corresponding incremental update bag of mark version number simultaneously carries out incremental update operation.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can with perform after step 203 withLower step (not shown in Fig. 2 a):
Step 204 ', receive the rollback downgrade request that client is sent.
In this implementation, above-mentioned electronic equipment can receive the rollback downgrade request that client is sent.Wherein, rollbackDowngrade request includes the rollback degradation version number of intended application, and here the rollback degradation version number in rollback downgrade request is targetUsing version number and the version number less than the intended application installed in client current version number.
Step 205 ', obtain the download address of the full dose installation kit corresponding with rollback degradation version number of intended application.
In this implementation, because client have sent rollback downgrade request, show that client wishes to install thereonIntended application roll back to the version also lower than current version number, and the full dose of current version number is generally only remained with clientInstallation kit, and be also not in the incremental update bag of the version also lower than current version number, therefore, client can not be realizedFrom the version number incremental update also lower than rollback degradation version number to rollback degradation version number, full dose renewal can only be carried out.So,Above-mentioned electronic equipment needs the download address of the full dose installation kit corresponding with rollback degradation version number for obtaining intended application.
Step 206 ', the download address of full dose installation kit is sent to into client, so that client is according to full dose installation kitDownload address download and full dose installation kit and carry out rollback degraded operation.
In this implementation, above-mentioned electronic equipment can be by step 205 ' in obtain full dose installation kit download addressClient is sent to, so that client downloads full dose installation kit and carries out rollback degradation behaviour according to the download address of full dose installation kitMake, so as to client can be realized for intended application rolling back to rollback degradation version number.
With continued reference to Fig. 3, Fig. 3 is one of the application scenarios of the generation method of the incremental update bag according to the present embodiment and showsIt is intended to.
In the application scenarios of Fig. 3, as shown in icon 301 in Fig. 3, electronic equipment obtains first the redaction of intended applicationInstallation kit and old version installation kit.
Then, as shown in icon 302 in Fig. 3, above-mentioned electronic equipment obtains four new edition intrinsic safety in redaction installation kitDress file:Two binary files " 1.png ", " 2.png " and two texts " 1.jsp ", " 2.jsp ", and as schemed in Fig. 3Shown in mark 303, two old versions installation file binary file " 1.png " in old version installation kit and text text are obtainedPart " 1.jsp ".
Then, for redaction installation kit relative to old version installation kit increase newly two files " 2.png " andTwo files that " 2.jsp " directly replicates two files and may be copied to are pacified as " 2.png " and " 2.jsp " and old versionThe differential file of old version installation file in dress bag, as shown in icon 304 in Fig. 3.
Then, two are adopted to binary file " 1.png " of the same name in redaction installation kit and in old version installation kitSystem difference algorithm generates the differential file between two binary files " 1.png " of the same name, as shown in icon 305 in Fig. 3.It is rightTwo texts " 1.jsp " of the same name are generated using text difference algorithm in redaction installation kit and in old version installation kitDifferential file between two texts " 1.jsp " of the same name, as shown in icon 306 in Fig. 3.
Finally, will be to four differential files:" 2.png " and " 2.jsp ", two binary files of the same name after duplicationThe differential file between differential file and two texts " 1.jsp " of the same name between " 1.png ", obtains after being compressedCompressed package as intended application incremental update bag corresponding with redaction installation kit and old version installation kit, in such as Fig. 3Shown in icon 307.
Redaction installation kit and old version that the method that above-described embodiment of the application is provided passes through acquisition intended applicationInstallation kit, then for each the redaction installation file in above-mentioned redaction installation kit, according to the redaction installation fileFile type generates the differential file of the redaction installation file and old version installation file in above-mentioned old version installation kit,Each differential file for being generated finally is compressed, incremental update of the resulting file bag as above-mentioned intended application will be compressedBag.During incremental update bag between the redaction installation kit and old version installation kit that generate intended application, according toThe difference of the file type of each redaction installation file takes different differential file generation methods in redaction installation kit, subtractsThe file size of incremental update bag is lacked, the time needed for client downloads incremental update bag and flow has been reduced then.
With further reference to Fig. 4, the flow process 400 of another embodiment of the generation method of incremental update bag is it illustrates.ShouldThe flow process 400 of the generation method of incremental update bag, comprises the following steps:
Step 401, obtains the redaction installation kit and old version installation kit of intended application.
In the present embodiment, in the embodiment shown in the concrete process of step 401 and Fig. 2 a step 201 concrete process baseThis is identical, will not be described here.
Step 402, for each the redaction installation file in redaction installation kit, determines the redaction installation fileFile type, if the file type of the redaction installation file is binary file, goes to step 403 ', if the redactionThe file type of installation file is text, goes to step 403.
Find after the comparative analysis to existing file difference comparison algorithm, existing difference algorithm is generating twoDuring differential file between binary file, the file size of the differential file for often generating is big with original binary fileLittle no too big difference, therefore, discomfort is combined into two binary files and generates differential files, on the contrary, generates the mistake of differential fileThe formation speed that journey causes incremental update bag is slower, and causes client after incremental update bag has been downloaded, and needs to payThe time of redaction installation file is synthesized according to old version installation file and differential file.And existing difference algorithm is being generatedDuring differential file between two texts, the size difference of the differential file size for often generating and original textIt is larger, it is suitably for two texts and generates differential file.
Therefore, in the present embodiment, the generation method operation of incremental update bag electronic equipment (such as Fig. 1 institutes thereonThe server for showing) the redaction installation file can be determined for each the redaction installation file in redaction installation kitFile type, above-mentioned file type can be text or binary file.Wherein, text is referred to dedicated for depositingThe file of the data of storage text character, the file in addition to text is binary file, for example, picture file, audio frequency textPart, video file, executable program file etc..If the file type of the redaction installation file is binary file, turnTo step 403 ', if the file type of the redaction installation file is text, go to step 403.
Step 403 ', the redaction installation file is replicated, and the redaction installation file for obtaining will be replicated as the new editionThe differential file of old version installation file in this installation file and old version installation kit.
In the present embodiment, above-mentioned electronic equipment can in step 402 determine the files classes of the redaction installation fileIn the case that type is binary file, differential file is generated because discomfort is combined into two binary files, therefore, above-mentioned electronics setsIt is standby directly to replicate the redaction installation file, and the redaction installation file for obtaining will be replicated as redaction installation textThe differential file of old version installation file in part and old version installation kit.
In the present embodiment, above-mentioned electronic equipment can also in step 403 determine and not exist in old version installation kitIn the case of the filename identical old version installation file of the redaction installation file, show the redaction installation fileIt is increased file with respect to old version installation kit, therefore, it can directly replicate the redaction installation file, and duplication is obtainedRedaction installation file as old version installation file in the redaction installation file and old version installation kit differenceFile.
In the present embodiment, above-mentioned electronic equipment can also in step 405 judge the file of generated differential fileSize is of the same name in the redaction installation file and old version installation kit more than in the case of default file size threshold value, showingThe differential file of file it is larger, be not suitable for that the differential file is added in incremental update bag, accordingly it is also possible to directly replicateThe redaction installation file, and the redaction installation file for obtaining will be replicated as the redaction installation file and old version peaceThe differential file of old version installation file in dress bag.
Step 403, determines in old version installation kit with the presence or absence of the filename identical with the redaction installation fileOld version installation file, if it does, step 404 is gone to, if it does not, going to step 403 '.
In this implementation, above-mentioned electronic equipment can in step 402 determine the file of the redaction installation fileIn the case that type is text, determine in old version installation kit with the presence or absence of the filename with the redaction installation fileIdentical old version installation file, if it does, step 404 is gone to, if it does not, going to step 403 '.
Step 404, generates the text with the redaction installation file in the redaction installation file and old version installation kitThe differential file of part name identical old version installation file, and by the differential file for being generated, text is installed as the redactionThe differential file of old version installation file in part and old version installation kit.
In this implementation, above-mentioned electronic equipment can determine in step 403 in old version installation kit exist withIn the case of the filename identical old version installation file of the redaction installation file, show the redaction installation file phaseIt is amended file to old version installation kit, therefore, it can generate the redaction installation file and old version installation kitIn differential file with the filename identical old version installation file of the redaction installation file, and by the difference for being generatedFile, as the differential file of old version installation file in the redaction installation file and old version installation kit.In practice,Various existing text difference method comparison instruments (for example, google-diff-match-patch) can be adopted, to the new editionWith the filename identical old version installation file of the redaction installation file in this installation file and old version installation kitThe amount of making the difference is calculated, and generates differential file.
Whether step 405, the file size for judging generated differential file is more than default file size threshold value, if greatlyIn going to step 403 ', if it is not greater, going to step 406.
In the present embodiment, above-mentioned electronic equipment can in step 404 generate the filename of the redaction installation fileAfter the differential file of identical old version installation file, judge the file size of generated differential file whether more than pre-If file size threshold value.
If using the differential file for being generated as old version peace in the redaction installation file and old version installationThe differential file of dress file is simultaneously added in incremental update bag, then client is needed to be generated during incremental updateDifferential file pay with down-off and time:Time and flow, duplication institute needed for the differential file that network transmission is generatedThe required time of the differential file of generation, by the file with the redaction installation file of the intended application installed in clientName identical old version installation file residual quantity was updated to the time needed for the redaction installation file.And if replicating the new editionThis installation file as old version installation file in the installation of the redaction installation file and old version differential file and addIn being added to incremental update bag, then client is during incremental update, it is only necessary to pay following for the redaction installation fileFlow and time:Time and flow needed for the network transmission redaction installation file, the institute for replicating the redaction installation fileThe time for needing, without paying the identical with the filename of the redaction installation file of the intended application that will be installed in clientOld version installation file residual quantity update to the time needed for the redaction installation file.Therefore, in order to reduce clientThe flow of incremental update and time, need to arrange default file size threshold value, if the file size of the differential file for being generatedDuring more than default file size threshold value, show that differential file itself is larger, in order to save client the time of incremental update is carried outAnd flow, full dose renewal can be carried out to the redaction installation file, therefore, it can go to step 403 '.If generatedThe file size of differential file is not more than default file size threshold value, shows that differential file is less, carries out to save clientThe time of incremental update and flow, can carry out incremental update to the redaction installation file, therefore, it can go to step 406.
As an example it is supposed that the file size of redaction installation file F1 is 1MB (Mega Byte, Mbytes), new editionThe file size of this installation file F1 and differential file F1 ' of old version installation file F1 is 900KB (Kilo Byte, K wordSection).
If updated using full dose, need for redaction installation file F1 (file size 1MB) to be transferred to client, it is requiredTransmission time is 5 seconds, and the time that replicating redaction installation file F1 needs is 0.5 second, then client needs to pay altogetherTime be 5.5 seconds.
If updated using residual quantity, need for differential file F1 ' (file size 900KB) to be transferred to client, required biographyThe defeated time is 4.5 seconds, and the time that replication difference file F1 ' needs is 0.5 second, by the old version installation file F1 root of clientIt it is 1 second the time required to updating to redaction installation file F1 according to differential file F1 ' residual quantity, then client needs what is paid altogetherTime is 6 seconds.
Although the file size of differential file F1 ' is less than the file size of redaction installation file F1, from clientFrom the point of view of the total time that needs are paid, the time needed for full dose updates is shorter.Accordingly, it would be desirable to file size threshold value is pre-set, andAccording to the size of differential file whether more than the default file size threshold value come determine whether the differential file that will be generated asThe differential file of old version installation file in the redaction installation file and old version installation kit.
In practice, can carry out after statistical analysis previously according to the reproduction speed of wideband condition and existing terminal deviceFile size threshold value is set.
Step 406, the differential file for being generated is defined as to go through in the redaction installation file and old version installation kitThe differential file of history version installation file.
In the present embodiment, above-mentioned electronic equipment can in step 405 judge that the file of generated differential file is bigIn the case of little no more than default file size threshold value, show that generated differential file is less, be adapted to do incremental update, thereforeThe differential file for being generated can be defined as the redaction installation file and text is installed with old version in old version installation kitThe differential file of part.
Step 407, compresses each differential file for being generated, and will compress increasing of the resulting file bag as intended applicationAmount updates bag.
In the present embodiment, the generation method operation of incremental update bag electronic equipment thereon can be each to what is generatedIndividual differential file is compressed, and the file bag obtained by compressing is used as the incremental update bag of intended application.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2 a, the generation side of the incremental update bag in the present embodimentThe step of flow process 400 of method has had more the file size of the differential file to being generated and has judged.Thus, the present embodiment descriptionScheme can be of the same name during text and the redaction installation file are installed with old version going through in redaction installation fileThe file size of the differential file of history version installation file does incremental update in the case of being not more than default file size threshold value, insteadIt, does full dose renewal, so as to reduce the time that client carries out needed for incremental update to a greater extent.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of incremental update bagGenerating means one embodiment, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2 a, and the device specifically may be usedIn to be applied to various electronic equipments.
As shown in figure 5, the generating means 500 of the incremental update bag of the present embodiment include:First acquisition unit 501, generationUnit 502 and compression unit 503.Wherein, first acquisition unit 501, are configured to obtain the redaction installation kit of intended applicationWith old version installation kit;Signal generating unit 502, is configured to for each redaction in above-mentioned redaction installation kit installs textPart, generates according to the file type of the redaction installation file and is gone through in the redaction installation file and above-mentioned old version installation kitThe differential file of history version installation file;And compression unit 503, it is configured to compress each differential file for being generated, will pressIncremental update bag of the file bag obtained by contracting as above-mentioned intended application.
In the present embodiment, the first acquisition unit 501 of the generating means 500 of incremental update bag, signal generating unit 502 and pressureThe concrete process of contracting unit 503 and its technique effect for being brought can respectively with reference to step 201, step in Fig. 2 a correspondence embodiments202 and the related description of step 203, will not be described here.
In some optional implementations of the present embodiment, above-mentioned file type can be text or binary systemFile;And above-mentioned signal generating unit 502 can include:First determining module 5021, is configured to determine that the redaction installs textThe file type of part;First replication module 5022, being configured to the file type in response to determining the redaction installation file isBinary file, replicates the redaction installation file, and will replicate the redaction installation file for obtaining as redaction installationThe differential file of file and old version installation file in above-mentioned old version installation kit.First determining module 5021 and first is multipleThe concrete process of molding block 5022 and its technique effect for being brought can respectively with reference to step 402 and step in Fig. 4 correspondence embodimentsRapid 403 ' related description, will not be described here.
In some optional implementations of the present embodiment, above-mentioned signal generating unit 502 can also include:Second determines mouldBlock 5023, the file type being configured in response to determining the redaction installation file is text, determines above-mentioned history versionWith the presence or absence of the filename identical old version installation file with the redaction installation file in this installation kit;Second backed stamperBlock 5024, is configured in response to determining above-mentioned old version installation kit the filename for not having with the redaction installation fileIdentical old version installation file, then replicate the redaction installation file, and will replicate the redaction installation file work for obtainingFor the differential file of the redaction installation file and old version installation file in above-mentioned old version installation kit.Second determines mouldBlock 5023 and the concrete process of the second replication module 5024 and its technique effect for being brought can respectively with reference to the corresponding embodiments of Fig. 4Middle step 403, step 403 ' related description, will not be described here.
In some optional implementations of the present embodiment, above-mentioned signal generating unit 502 can also include:Generation module5025, presence is identical with the filename of the redaction installation file in being configured in response to determining above-mentioned old version installation kitOld version installation file, generate in the redaction installation file and above-mentioned old version installation kit and text be installed with the redactionThe differential file of the filename identical old version installation file of part;Judge module 5026, is configured to judge what is generatedWhether the file size of differential file is more than default file size threshold value;3rd replication module 5027, is configured in response to instituteThe file size of the differential file of generation is more than above-mentioned default file size threshold value, then replicate the redaction installation file, and willThe redaction installation file that duplication is obtained is pacified as the redaction installation file with old version in above-mentioned old version installation kitThe differential file of dress file.Generation module 5025, the concrete process of the replication module 5027 of judge module 5026 and the 3rd and its instituteThe technique effect for bringing can respectively with reference to Fig. 4 correspondence embodiment in step 404, step 405 and step 403 ' related description,This is repeated no more.
In some optional implementations of the present embodiment, above-mentioned signal generating unit 502 can also include:3rd determines mouldBlock 5028, the file size for being configured to the differential file in response to being generated is not more than default file size threshold value, then by instituteThe differential file of generation is defined as the redaction installation file with old version installation file in above-mentioned old version installation kitDifferential file.The concrete process of the 3rd determining module 5028 and its technique effect for being brought are referred in Fig. 4 correspondence embodimentsThe related description of step 406, will not be described here.
In some optional implementations of the present embodiment, the generating means 500 of above-mentioned incremental update bag can also be wrappedInclude:Request reception unit 504 is updated, is configured to receive the renewal request that client is sent, above-mentioned renewal request includes above-mentionedThe current version number and target version number of intended application;Determining unit 505, is configured to according to above-mentioned current version number and above-mentionedTarget version number, determines the incremental update bag corresponding with above-mentioned current version number and above-mentioned target version number of above-mentioned intended applicationDownload address;First transmitting element 506, is configured to for the download address of above-mentioned incremental update bag to be sent to above-mentioned clientEnd, so that above-mentioned client is according to the above-mentioned intended application of the download address of above-mentioned incremental update bag download and above-mentioned current versionNumber and the corresponding incremental update bag of above-mentioned target version number and carry out incremental update operation.Update request reception unit 504, determineUnit 505 and the concrete process of the first transmitting element 506 and its technique effect for being brought can respectively with reference to the corresponding enforcements of Fig. 2 aThe related description of step 204, step 205 and step 206, will not be described here in example.
In some optional implementations of the present embodiment, the generating means 500 of above-mentioned incremental update bag can also be wrappedInclude:Rollback downgrade request receiving unit 507, is configured to receive the rollback downgrade request that client is sent, and above-mentioned rollback degradesRequest includes the rollback degradation version number of above-mentioned intended application, wherein, above-mentioned rollback degradation version number is less than in above-mentioned clientThe current version number of the intended application of installation;Second acquisition unit 508, be configured to obtain above-mentioned intended application with above-mentioned timeRoll-off the download address of the corresponding full dose installation kit of grade version number;Second transmitting element 509, is configured to install above-mentioned full doseThe download address of bag is sent to above-mentioned client, so that above-mentioned client is downloaded according to the download address of above-mentioned full dose installation kitState full dose installation kit and carry out rollback degraded operation.Rollback downgrade request receiving unit 507, second acquisition unit 508 and secondThe concrete process of transmitting element 509 and its technique effect for being brought can respectively with reference to step 204 in Fig. 2 a correspondence embodiments ',The related description of step 205 ' and step 206 ', will not be described here.
Below with reference to Fig. 6, the computer system 600 that is suitable to the server for realizing the embodiment of the present application is it illustratesStructural representation.Server shown in Fig. 6 is only an example, should not be to the function of the embodiment of the present application and use range bandCarry out any restriction.
As shown in fig. 6, computer system 600 includes CPU (CPU, Central Processing Unit)601, it can be according to the program being stored in read-only storage (ROM, Read Only Memory) 602 or from storage part606 programs being loaded in random access storage device (RAM, Random Access Memory) 603 and perform it is various appropriateAction and process.In RAM 603, the system that is also stored with 600 operates required various programs and data.CPU 601、ROM602 and RAM 603 are connected with each other by bus 604.Input/output (I/O, Input/Output) interface 605 is also connected toBus 604.
I/O interfaces 605 are connected to lower component:Storage part 606 including hard disk etc.;And including such as LAN (localsNet, Local Area Network) card, modem etc. NIC communications portion 607.The Jing of communications portion 607Communication process is performed by the network of such as internet.Driver 608 is also according to needing to be connected to I/O interfaces 605.Detachable media609, such as disk, CD, magneto-optic disk, semiconductor memory etc., as needed on driver 608, in order to fromThe computer program for reading thereon is mounted into as needed storage part 606.
Especially, in accordance with an embodiment of the present disclosure, may be implemented as computer above with reference to the process of flow chart descriptionSoftware program.For example, embodiment of the disclosure includes a kind of computer program, and it includes being carried on computer-readable mediumOn computer program, the computer program includes the program code for the method shown in execution flow chart.In such realityIn applying example, the computer program can be downloaded and installed by communications portion 607 from network, and/or from detachable media609 are mounted.When the computer program is performed by CPU (CPU) 601, perform what is limited in the present processesAbove-mentioned functions.It should be noted that computer-readable medium described herein can be computer-readable signal media orComputer-readable recording medium or the two are combined.Computer-readable recording medium for example can be --- butBe not limited to --- the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or device, or arbitrarily more than combination.The more specifically example of computer-readable recording medium can be including but not limited to:Electrical connection with one or more wires,Portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed read-only depositingReservoir (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memoryPart or above-mentioned any appropriate combination.In this application, computer-readable recording medium can be it is any comprising or storageThe tangible medium of program, the program can be commanded execution system, device, and either device is used or in connection.AndIn the application, computer-readable signal media can include the data letter propagated in a base band or as a carrier wave partNumber, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but notIt is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computerAny computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit useIn by instruction execution system, device, either device is used or program in connection.Include on computer-readable mediumProgram code can be with any appropriate medium transmission, including but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo ZheshangAny appropriate combination stated.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journeyThe architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generationA part for table one module, program segment or code a, part for the module, program segment or code is used comprising one or moreIn the executable instruction of the logic function for realizing regulation.It should also be noted that in some are as the realization replaced, being marked in square frameThe function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames for succeedingly representing are actuallyCan perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to noteMeaning, the combination of each square frame and block diagram and/or the square frame in flow chart in block diagram and/or flow chart can be with holdingThe fixed function of professional etiquette or the special hardware based system of operation, or can be with specialized hardware and computer instructions realizingCombination realizing.
Being described in unit involved in the embodiment of the present application can be realized by way of software, it is also possible to by hardThe mode of part is realizing.Described unit can also be arranged within a processor, for example, can be described as:A kind of processor bagInclude first acquisition unit, signal generating unit and compression unit.Wherein, the title of these units is not constituted to this under certain conditionsThe restriction of unit itself, for example, compression unit is also described as " unit of compression differential file ".
On the other hand used as, present invention also provides a kind of computer-readable medium, the computer-readable medium can beIncluded in device described in above-described embodiment;Can also be individualism, and without allocating in the device.Above-mentioned calculatingMachine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the device so that shouldDevice:Obtain the redaction installation kit and old version installation kit of intended application;For each in above-mentioned redaction installation kitRedaction installation file, the redaction installation file is generated with above-mentioned history version according to the file type of the redaction installation fileThe differential file of old version installation file in this installation kit;Each differential file that compression is generated, compression is resultingIncremental update bag of the file bag as above-mentioned intended application.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the artMember should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristicScheme, while also should cover in the case where conceiving without departing from foregoing invention, is carried out by above-mentioned technical characteristic or its equivalent featureOther technical schemes for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed hereinThe technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (14)

CN201710109119.6A2017-02-272017-02-27Incremental updating packet generating method and device, and serverPendingCN106648712A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710109119.6ACN106648712A (en)2017-02-272017-02-27Incremental updating packet generating method and device, and server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710109119.6ACN106648712A (en)2017-02-272017-02-27Incremental updating packet generating method and device, and server

Publications (1)

Publication NumberPublication Date
CN106648712Atrue CN106648712A (en)2017-05-10

Family

ID=58846538

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710109119.6APendingCN106648712A (en)2017-02-272017-02-27Incremental updating packet generating method and device, and server

Country Status (1)

CountryLink
CN (1)CN106648712A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108399071A (en)*2018-01-192018-08-14五八有限公司Processing method, device, equipment and the storage medium of application program installation kit size
CN109032641A (en)*2018-07-242018-12-18杭州安恒信息技术股份有限公司Application version update method and device
CN109522041A (en)*2018-10-152019-03-26网易(杭州)网络有限公司Client resource update method, device, processor, server and terminal
CN109582344A (en)*2018-11-272019-04-05北京车和家信息技术有限公司Increment updating method, device, Cloud Server and computer readable storage medium
CN109831323A (en)*2019-01-152019-05-31网宿科技股份有限公司Management method, management system and the server of server info
CN109857423A (en)*2018-12-202019-06-07Oppo广东移动通信有限公司Program version update method, device, server and readable storage medium storing program for executing
CN110032388A (en)*2019-04-042019-07-19阿里巴巴集团控股有限公司A kind of building of delta file, publication, method for down loading and device
CN110069273A (en)*2019-04-302019-07-30四川长虹教育科技有限公司The batch packaging method and device of software upgrade package
CN110109685A (en)*2019-04-232019-08-09维沃移动通信有限公司Production method, device and the mobile terminal of the update, installation kit applied fastly
CN110231947A (en)*2019-05-212019-09-13深圳壹账通智能科技有限公司A kind of update of plug-in method, equipment, server and the storage medium of application program
CN110505289A (en)*2019-08-072019-11-26Oppo广东移动通信有限公司 File download method and apparatus, computer readable medium, wireless communication device
CN110532236A (en)*2019-08-212019-12-03广联达科技股份有限公司Increment updating method, system and the medium of compressed file
CN110741616A (en)*2017-06-142020-01-31北京嘀嘀无限科技发展有限公司System and method for data online
CN112424747A (en)*2018-05-292021-02-26北欧半导体公司Incremental files with reverse data
WO2021097758A1 (en)*2019-11-212021-05-27深圳市欢太科技有限公司Incremental package generation method, incremental package generation apparatus, and server
CN113031997A (en)*2021-02-262021-06-25深圳壹账通创配科技有限公司Upgrade package generation and management method and device, computer equipment and storage medium
CN113157302A (en)*2021-05-242021-07-23平安普惠企业管理有限公司Software updating method, device, medium and equipment
CN113448612A (en)*2021-07-122021-09-28中国工商银行股份有限公司Plug-in updating method, device, electronic equipment, medium and program product
CN114153862A (en)*2021-12-092022-03-08腾讯科技(成都)有限公司Service data processing method, device, equipment and storage medium
CN114402288A (en)*2019-11-182022-04-26深圳市欢太科技有限公司 Incremental package generation method, incremental package generation device and server
CN117407031A (en)*2023-11-272024-01-16深圳麦风科技有限公司Patch package upgrade file generation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104378409A (en)*2014-08-292015-02-25武汉钢铁(集团)公司File synchronization system
CN104539696A (en)*2014-12-262015-04-22北京像素软件科技股份有限公司Client end incremental updating method and system
CN105404521A (en)*2014-05-302016-03-16广州市动景计算机科技有限公司Incremental upgrading method and relevant device
CN106462430A (en)*2016-08-292017-02-22北京小米移动软件有限公司Method and device for obtaining application upgrade packages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105404521A (en)*2014-05-302016-03-16广州市动景计算机科技有限公司Incremental upgrading method and relevant device
CN104378409A (en)*2014-08-292015-02-25武汉钢铁(集团)公司File synchronization system
CN104539696A (en)*2014-12-262015-04-22北京像素软件科技股份有限公司Client end incremental updating method and system
CN106462430A (en)*2016-08-292017-02-22北京小米移动软件有限公司Method and device for obtaining application upgrade packages

Cited By (29)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110741616A (en)*2017-06-142020-01-31北京嘀嘀无限科技发展有限公司System and method for data online
CN108399071A (en)*2018-01-192018-08-14五八有限公司Processing method, device, equipment and the storage medium of application program installation kit size
CN108399071B (en)*2018-01-192021-07-20五八有限公司Application program installation package size processing method, device, equipment and storage medium
CN112424747A (en)*2018-05-292021-02-26北欧半导体公司Incremental files with reverse data
CN109032641A (en)*2018-07-242018-12-18杭州安恒信息技术股份有限公司Application version update method and device
CN109522041A (en)*2018-10-152019-03-26网易(杭州)网络有限公司Client resource update method, device, processor, server and terminal
CN109582344A (en)*2018-11-272019-04-05北京车和家信息技术有限公司Increment updating method, device, Cloud Server and computer readable storage medium
CN109857423B (en)*2018-12-202022-06-10Oppo广东移动通信有限公司 Program version update method, device, server and readable storage medium
CN109857423A (en)*2018-12-202019-06-07Oppo广东移动通信有限公司Program version update method, device, server and readable storage medium storing program for executing
CN109831323A (en)*2019-01-152019-05-31网宿科技股份有限公司Management method, management system and the server of server info
CN110032388A (en)*2019-04-042019-07-19阿里巴巴集团控股有限公司A kind of building of delta file, publication, method for down loading and device
CN110032388B (en)*2019-04-042022-04-29创新先进技术有限公司Incremental file construction, publishing and downloading method and device
CN110109685A (en)*2019-04-232019-08-09维沃移动通信有限公司Production method, device and the mobile terminal of the update, installation kit applied fastly
CN110069273A (en)*2019-04-302019-07-30四川长虹教育科技有限公司The batch packaging method and device of software upgrade package
CN110231947A (en)*2019-05-212019-09-13深圳壹账通智能科技有限公司A kind of update of plug-in method, equipment, server and the storage medium of application program
WO2020233045A1 (en)*2019-05-212020-11-26深圳壹账通智能科技有限公司Plug-in update method and device, server and computer readable storage medium
CN110505289B (en)*2019-08-072022-04-26Oppo广东移动通信有限公司File downloading method and device, computer readable medium and wireless communication equipment
CN110505289A (en)*2019-08-072019-11-26Oppo广东移动通信有限公司 File download method and apparatus, computer readable medium, wireless communication device
CN110532236A (en)*2019-08-212019-12-03广联达科技股份有限公司Increment updating method, system and the medium of compressed file
CN114402288A (en)*2019-11-182022-04-26深圳市欢太科技有限公司 Incremental package generation method, incremental package generation device and server
WO2021097758A1 (en)*2019-11-212021-05-27深圳市欢太科技有限公司Incremental package generation method, incremental package generation apparatus, and server
CN113031997A (en)*2021-02-262021-06-25深圳壹账通创配科技有限公司Upgrade package generation and management method and device, computer equipment and storage medium
CN113157302A (en)*2021-05-242021-07-23平安普惠企业管理有限公司Software updating method, device, medium and equipment
CN113448612A (en)*2021-07-122021-09-28中国工商银行股份有限公司Plug-in updating method, device, electronic equipment, medium and program product
CN113448612B (en)*2021-07-122024-08-02中国工商银行股份有限公司Plug-in updating method, device, electronic equipment, medium and program product
CN114153862A (en)*2021-12-092022-03-08腾讯科技(成都)有限公司Service data processing method, device, equipment and storage medium
CN114153862B (en)*2021-12-092024-07-12腾讯科技(成都)有限公司Service data processing method, device, equipment and storage medium
CN117407031A (en)*2023-11-272024-01-16深圳麦风科技有限公司Patch package upgrade file generation method, device, equipment and storage medium
CN117407031B (en)*2023-11-272024-04-26深圳麦风科技有限公司Patch package upgrade file generation method, device, equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN106648712A (en)Incremental updating packet generating method and device, and server
CN108279932B (en)Method and device for dynamically configuring user interface of mobile terminal
KR20140001172A (en)Methods for updating applications
KR20100133382A (en) Application Management within the Distributable Object Hierarchy
CN113849752B (en)Page caching method, device and storage medium
CN106919382A (en)For generating the method and apparatus that application updates bag
CN112487331A (en)Page generation method and device, storage medium and electronic equipment
CN112947981A (en)Application program resource updating method and device, terminal equipment and server
CN113452733A (en)File downloading method and device
CN114115969A (en)Hot updating method and system based on real Native
CN105760183A (en) File processing method, device and communication system
CN109672534A (en)Processing method, device, storage medium and the electronic device of Internet resources
CN110874445A (en) Web page loading method, client and business service center
CN114385570A (en) Method, apparatus, electronic device and readable medium for data synchronization
CN113220339A (en)Page generation method and device
CN110505289B (en)File downloading method and device, computer readable medium and wireless communication equipment
CN111107133A (en)Generation method of difference packet, data updating method, device and storage medium
CN110727889B (en)Static webpage resource loading method and device, medium and electronic equipment
CN114610366A (en) A differential package upgrade method, system, intelligent electronic device and storage medium
CN105471980A (en)Embedded-OpenWrt-wireless-router-technology-based cloud server data access method
CN112783514A (en)Method and system for deployment management of web front-end project
CN103139298A (en)Method for transmitting network data and device
CN115883359B (en)Upgrade installation method, device and system thereof, electronic equipment and storage medium
CN111988405A (en)Message rewriting method of load balancing device and load balancing device
CN112068848A (en)Method and device for managing software version

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20170510

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp